Most important bit first
I picked up the following code at the bottom of this post (and changed it a bit) from another request for help which had been kindly answered by VBA Noob (Thank you VBA). I have got this code working but am struggling to adapt it to my needs - what I would like it to do is pick up a whole list of appointments and put them into outlook for me. Ideally from a named range on an excel spreadsheet?
I Would also like to know this but less important than above
Can anyone also tell me where I can find a list of all the different (sorry dont know terminology) dot commands which work with outlook eg .start or .duration .reminderminutesbeforestart? I am particularly looking for the command that is an all day appointment flag (rather than a set time).
Can someone also tell me whether it is possible to split the .start command into date and time from separate cells in the spreadsheet?
I know this is fairly basic but would appreciate some help - sadly I'm just a cut and paster rather than a programmer so have really apprciated all the help out there over the last year.
Thanks
EACH
Sub MkeAppt()
Dim ol As Outlook.Application
Dim ai As AppointmentItem
Set ol = New Outlook.Application
Set ai = ol.CreateItem(olAppointmentItem)
With ai
.Subject = "Remind me"
.Start = Range("A1").Value
.Duration = Range("b1").value
.ReminderMinutesBeforeStart = range("c1").value
.BusyStatus = olBusy
.Save
End With
Set ai = Nothing
Set ol = Nothing
End Sub
Bookmarks