gpt4 book ai didi

excel - 在 Excel 应用程序中创建 Outlook 项目生成错误 : "Object doesn' t support this property or method"

转载 作者:行者123 更新时间:2023-12-04 22:19:06 24 4
gpt4 key购买 nike

下面是 Excel 宏的开头。我一直收到消息

"Object doesn't support this property or method.


Sub RegisterAppointmentList(CName As String)

' adds a list of appontments to the Calendar in Outlook
Dim olApp As Outlook.Application
Dim olApptItem As Outlook.AppointmentItem

Set olApp = GetObject("", "Outlook.Application")

Set olApptItem = Application.CreateItem(olAppointmentItem)

On Error Resume Next

最佳答案

换行

Set olApptItem = Application.CreateItem(olAppointmentItem)
Set olApptItem = olApp.CreateItem(olAppointmentItem)

关于excel - 在 Excel 应用程序中创建 Outlook 项目生成错误 : "Object doesn' t support this property or method",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65974681/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com