N
noone
I am trying to capture the EntryID of a message, delete it,
then delete it again from 'Deleted Items'.
I can delete the message(s) just fine, however it bonks out
below (see NOTEs).
Dim objNameSpace As Outlook.NameSpace
Set objNameSpace = Application.Session
Dim objItem As Object
Dim strEntry
(removed extra code not needed for this example)
strEntry = objItem.EntryID
objItem.Delete
'NOTE: All above works just fine, deleting the message
Set objItem = objNameSpace.GetItemFromID(strEntry)
objItem.Delete
'NOTE: The 2 lines above error out
Am I completely off ?
Thanks.
then delete it again from 'Deleted Items'.
I can delete the message(s) just fine, however it bonks out
below (see NOTEs).
Dim objNameSpace As Outlook.NameSpace
Set objNameSpace = Application.Session
Dim objItem As Object
Dim strEntry
(removed extra code not needed for this example)
strEntry = objItem.EntryID
objItem.Delete
'NOTE: All above works just fine, deleting the message
Set objItem = objNameSpace.GetItemFromID(strEntry)
objItem.Delete
'NOTE: The 2 lines above error out
Am I completely off ?
Thanks.