B
Bill Dilworth
I am trying to somewhat standardize the way my flights hotels and rental
cars appear in my outlook schedule. I will create a simple VBA form and
enter the known info and the code will enter the standardized info into the
calendar. Sounds simple enough.
I am not new to VBA, but have never applied it to Outlook before.
I am running Outlook 2003 with SP 3 on an XP box.
So far I am good with most of it, however, I can not figure out how to
adjust the "label" item (color-coded Travel Required" etc.) value.
Here is the code I kinda hacked out. Your expert advice or pointers to
locations to learn about these functions will be greatly appreciated.
Bill D.
-----------------------------------------
Private Sub AppointThis()
Dim myOlApp As Application
Dim myItem As Outlook.AppointmentItem
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olAppointmentItem)
With myItem
.Subject = "Flight"
.Location = "Pittsburgh"
.AllDayEvent = False
.Start = #1/3/2008 13:30# ' Date / Time
.Duration = "600" ' in minutes
.ReminderSet = False
.BusyStatus = olFree
.Body = "This is a sample text"
'This is the stuff I am not sure about
.IsOnlineMeeting = False
.MeetingStatus = olNonMeeting
.ConferenceServerAllowExternal = False
.ResponseRequested = False
'Save and end the insertion
.Save
End With
Set myItem = Nothing
Set myOlApp = Nothing
End Sub
cars appear in my outlook schedule. I will create a simple VBA form and
enter the known info and the code will enter the standardized info into the
calendar. Sounds simple enough.
I am not new to VBA, but have never applied it to Outlook before.
I am running Outlook 2003 with SP 3 on an XP box.
So far I am good with most of it, however, I can not figure out how to
adjust the "label" item (color-coded Travel Required" etc.) value.
Here is the code I kinda hacked out. Your expert advice or pointers to
locations to learn about these functions will be greatly appreciated.
Bill D.
-----------------------------------------
Private Sub AppointThis()
Dim myOlApp As Application
Dim myItem As Outlook.AppointmentItem
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olAppointmentItem)
With myItem
.Subject = "Flight"
.Location = "Pittsburgh"
.AllDayEvent = False
.Start = #1/3/2008 13:30# ' Date / Time
.Duration = "600" ' in minutes
.ReminderSet = False
.BusyStatus = olFree
.Body = "This is a sample text"
'This is the stuff I am not sure about
.IsOnlineMeeting = False
.MeetingStatus = olNonMeeting
.ConferenceServerAllowExternal = False
.ResponseRequested = False
'Save and end the insertion
.Save
End With
Set myItem = Nothing
Set myOlApp = Nothing
End Sub