Article ID: 172538
Article Last Modified on 1/20/2007
Sub RemoveAppt()
Set myOlApp = CreateObject("Outlook.Application")
Set olNS = myOlApp.GetNameSpace("MAPI")
mymail = "johndoe"
Set myRecip = olNS.CreateRecipient(mymail)
myRecip.Resolve
If myRecip.Resolved Then
Set myfolder = olNS.GetSharedDefaultFolder(myRecip,olFolderCalendar)
day1 = "1/1/97 9:00 AM"
Set myappointments = myfolder.Items
Set currentappt = myappointments.Find("[Start] = """ & day1 & """")
currentappt.Delete
Else
MsgBox "Could not resolve email"
End If
End Sub
166368 OL97: How to Get Help Programming with Outlook
170783 OL97: Q&A: Questions about Customizing or Programming Outlook
Additional query words: OutSol OutSol97
Keywords: kbcode kbhowto KB172538