J
Jean Marie VIGNEAUD
Hello,
I've made an outlook Application with the following code. In fact, I would
like delete some record in the public folders.
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
Set mycalendar = myNameSpace.Folders("Boîte aux lettres - VIGNEAUD
Jean-Marie").Folders("Calendrier COURAU")
Set myItemsCalendrier = mycalendar.Items
Set PublicFolder= mynamespace.folders("Public Folder")
Set All = PublicFolder.folders("All")
Set FolderCalendarAgent = All.Folders("Agent Calendar")
Set myItemCalendarAgent = FolderCalendarAgent .Items
Set maPage=Item.GetInspector.ModifiedFormPages("Appointement")
Set mesControles=maPage.Controls
Organizer = mesControles("OrganizerDelegue")
critere = mesControles("OrganizerDelegue")
Set myItemEfface = myItemCalendarAgent .Find("[Organizer]= """ & critere &
"""" )
==> do while TypeName(myItemEfface)<> "Nothing"
==> myItemEfface.delete
==> Set myItemEfface = myItemCalendrierAgent.FindNext
==> loop
This code is OK, exept one thing. There is a message before the Delete
action.
Is it possible to ignore this message ?
Regards
Jean Marie
I've made an outlook Application with the following code. In fact, I would
like delete some record in the public folders.
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
Set mycalendar = myNameSpace.Folders("Boîte aux lettres - VIGNEAUD
Jean-Marie").Folders("Calendrier COURAU")
Set myItemsCalendrier = mycalendar.Items
Set PublicFolder= mynamespace.folders("Public Folder")
Set All = PublicFolder.folders("All")
Set FolderCalendarAgent = All.Folders("Agent Calendar")
Set myItemCalendarAgent = FolderCalendarAgent .Items
Set maPage=Item.GetInspector.ModifiedFormPages("Appointement")
Set mesControles=maPage.Controls
Organizer = mesControles("OrganizerDelegue")
critere = mesControles("OrganizerDelegue")
Set myItemEfface = myItemCalendarAgent .Find("[Organizer]= """ & critere &
"""" )
==> do while TypeName(myItemEfface)<> "Nothing"
==> myItemEfface.delete
==> Set myItemEfface = myItemCalendrierAgent.FindNext
==> loop
This code is OK, exept one thing. There is a message before the Delete
action.
Is it possible to ignore this message ?
Regards
Jean Marie