D.Moore
Senior Member
- Outlook version
- Outlook 2016 64 bit
- Email Account
- Office 365 Exchange
Dear Diane,
After all update since 12730.20236 (including the latest one), this code not running anymore (though it was working perfectly in the last 2 years). I tried to debug it, and it seems, that can not resolve the shared mailbox (though nothing changed on the mailbox and if I restore a previous version of office from backup prior to 12730.20236, resolve it perfectly).
May I ask if you are aware of any change on resolving shared mailboxes since 12730.20236 ?
Maybe this has something to do with it ? :
https://support.microsoft.com/en-us...s-impacted-april-2020-office-security-updates
Many many thanks,
Moore
After all update since 12730.20236 (including the latest one), this code not running anymore (though it was working perfectly in the last 2 years). I tried to debug it, and it seems, that can not resolve the shared mailbox (though nothing changed on the mailbox and if I restore a previous version of office from backup prior to 12730.20236, resolve it perfectly).
May I ask if you are aware of any change on resolving shared mailboxes since 12730.20236 ?
Maybe this has something to do with it ? :
https://support.microsoft.com/en-us...s-impacted-april-2020-office-security-updates
Many many thanks,
Moore
Code:
Set objOwnerDELETE = objNS.CreateRecipient(email)
objOwnerDELETE.Resolve
If objOwnerDELETE.Resolved Then
Set objSourceFolderMAILBOX = objNS.GetSharedDefaultFolder(objOwnerDELETE, olFolderInbox)
Set objDeletedItems = objSourceFolderMAILBOX
Set objDeletedItems = objDeletedItems.Parent.Folders("Deleted Items")
Set objItems = objDeletedItems.Items
For i = objItems.Count To 1 Step -1
objItems.Item(i).Delete
Next
Set objFolders = objDeletedItems.Folders
For i = objFolders.Count To 1 Step -1
objFolders.Item(i).Delete
Next
Set objDeletedItems = Nothing
Set objFolders = Nothing
Set objItems = Nothing
End If