B
Bingo
I'm using the following code to do this but the item
stays int he Deleted Items folder. Why? Thanks.
Dim oMapiInbox As Outlook.MAPIFolder
Dim oMapiDelete As Outlook.MAPIFolder
Dim oMapiMail As Outlook.MailItem
Dim oMapiMailNew As Outlook.MailItem
Dim sMailID As String
Set oMapiInbox = oNsp.GetDefaultFolder(olFolderInbox)
Set oMapiDelete = oNsp.GetDefaultFolder
(olFolderDeletedItems)
Set oMapiMail = oMapiInbox.Items(1)
Set oMapiMailNew = oMapiMail.Move(oMapiDelete)
oMapiMailNew.Delete
Set oMapiMailNew = Nothing
Set oMapiMail = Nothing
Set oMapiInbox = Nothing
stays int he Deleted Items folder. Why? Thanks.
Dim oMapiInbox As Outlook.MAPIFolder
Dim oMapiDelete As Outlook.MAPIFolder
Dim oMapiMail As Outlook.MailItem
Dim oMapiMailNew As Outlook.MailItem
Dim sMailID As String
Set oMapiInbox = oNsp.GetDefaultFolder(olFolderInbox)
Set oMapiDelete = oNsp.GetDefaultFolder
(olFolderDeletedItems)
Set oMapiMail = oMapiInbox.Items(1)
Set oMapiMailNew = oMapiMail.Move(oMapiDelete)
oMapiMailNew.Delete
Set oMapiMailNew = Nothing
Set oMapiMail = Nothing
Set oMapiInbox = Nothing