Got it. Just so you know I already have the getcurrentitem function...so don' need it..I read the following re if a conact is open...
When you are looking at an item that is open and has focus, it uses an
Outlook Inspector. The code you need to work with Inspectors is:
[TD="class: code"]Set objItem = objApp.ActiveInspector.CurrentItem
If that is what needs to be added, where do I put it re the code below that creates the calendar event etc...and anything else to add:
Sub Office_Calendar_Event()
Set myFolder = Session.GetDefaultFolder(olFolderCalendar).Folders ("Office Calendar")
Set myItem = myFolder.Items.Add("IPM.Appointment.Office Calendar Event")
myItem.Display
End Sub
[/TD]
When you are looking at an item that is open and has focus, it uses an
Outlook Inspector. The code you need to work with Inspectors is:
[TD="class: code"]Set objItem = objApp.ActiveInspector.CurrentItem
If that is what needs to be added, where do I put it re the code below that creates the calendar event etc...and anything else to add:
Sub Office_Calendar_Event()
Set myFolder = Session.GetDefaultFolder(olFolderCalendar).Folders ("Office Calendar")
Set myItem = myFolder.Items.Add("IPM.Appointment.Office Calendar Event")
myItem.Display
End Sub
[/TD]