0
我的Outlook加载项在会议邀请中添加了收件人。添加收件人时需要显示“收件人”列表。如何访问Outlook中的内置选项卡?访问Outlook加载项中的内置选项卡
我的Outlook加载项在会议邀请中添加了收件人。添加收件人时需要显示“收件人”列表。如何访问Outlook中的内置选项卡?访问Outlook加载项中的内置选项卡
没有API来做到这一点。您可以使用辅助API,或者您可以使用Redemption及其SafeInspector对象(它封装了一些辅助功能API功能)
set sInspector = CreateObject("Redemption.SafeInspector")
sInspector.Item = Application.ActiveInspector
'make sure "Scheduling Assistant" is shown
set Ribbon = sInspector.Ribbon
oldActiveTab = Ribbon.ActiveTab
Ribbon.ActiveTab = "Meeting"
set Control = Ribbon.Controls("Scheduling Assistant")
Control.Execute
'MsgBox "wait" - you might need to wait for the tab to switch
'simulate a click on the "Add Attendee" button
sInspector.InvokeControl(&H00001112) ' &H00001112 is AppointmentAddAttendeeButton
你的意思是你想切换到“日程安排助理”选项卡? –
我希望以编程方式点击“邀请与会者”选项,然后在“收件人”列表中添加收件人,只是为了通知用户收件人已添加 – Ajinkya