I restarted my laptop and the macro started working again.I have deployed this macro on other user's outlook who is running this on a shared mailbox and he is getting "The attempted operation failed. An object could not be found" error message in below lines of code:
Set SubFolder = ShareInbox.Folders(InputFolder) 'Change this line to specify folder
Set myDestFolder = ShareInbox.Folders(OutputFolder)
The macro has no issues finding the shared mailbox, and the Inbox of it but fails to recognize the subfolders within the Inbox. I have made sure they got correct references selected and excel 16.0 object library is also selected . Any help will be much appreciated.
Thanks