1
我一直在使用vba的Outlook的小項目。最終目標是與兩位收件人設置約會/會面,並將其設置爲整天。那麼,我需要它在我的日曆中找到我的會議,並將其設置爲不是一整天的事件。展望VBA會議調整
我已經到了可以將會議發送給收件人的地步,並且可以根據需要顯示。唯一的障礙是讓我的代碼按日期和時間找到相同的會議(與發送時相同),並將其從全天事件更改爲不是全天事件。到目前爲止,這是我的代碼,可以用於我目前需要的功能。
Sub Appointment()
Dim olApt As AppointmentItem
Set olApp = Outlook.Application
Set olApt = olApp.CreateItem(olAppointmentItem)
With olApt
.Start = #3/10/2017 4:00:00 PM#
.End = #3/3/1017 5:00:00 PM#
.MeetingStatus = olMeeting
.AllDayEvent = True
.Subject = "OOO - Test"
.Body = "Testing Stuff"
.BusyStatus = olFree
.ReminderSet = False
.RequiredAttendees = "Placeholder" & ";" & " Placeholder"
.Save
.Send
End With
Set olApt = Nothing
Set olApp = Nothing
End Sub