T
Tiger
Hi,
I have little experience with VBA. I have a script that i got from here
which allows me press a button that once pressed it would add the user that
pressed it to the list of required attendees to the existing event.
However i want it to also add the event that was pressed to send the
appointment to the personal calendar.
Bellow is the script that i am using. What and where should i add the
function that i need?
Thank you for you time.
Sub AddRecip()
Dim oAppt As Outlook.AppointmentItem
Dim colRecips As Outlook.Recipients
Dim oRecip As Outlook.Recipient
Set oAppt = Application.ActiveExplorer.Selection.Item(1)
Set colRecips = oAppt.Recipients
Set oRecip = colRecips.Add(Application.GetNamespace("MAPI").CurrentUser)
oRecip.Type = olTo
oAppt.Save
oAppt.Send
Set oRecip = Nothing
Set colRecips = Nothing
Set oAppt = Nothing
End Sub
I have little experience with VBA. I have a script that i got from here
which allows me press a button that once pressed it would add the user that
pressed it to the list of required attendees to the existing event.
However i want it to also add the event that was pressed to send the
appointment to the personal calendar.
Bellow is the script that i am using. What and where should i add the
function that i need?
Thank you for you time.
Sub AddRecip()
Dim oAppt As Outlook.AppointmentItem
Dim colRecips As Outlook.Recipients
Dim oRecip As Outlook.Recipient
Set oAppt = Application.ActiveExplorer.Selection.Item(1)
Set colRecips = oAppt.Recipients
Set oRecip = colRecips.Add(Application.GetNamespace("MAPI").CurrentUser)
oRecip.Type = olTo
oAppt.Save
oAppt.Send
Set oRecip = Nothing
Set colRecips = Nothing
Set oAppt = Nothing
End Sub