Physimed
asked on
Outlook VBA Code - Delete Items in toggle folder and subfolder
I found that script in Expert Exchange
https://www.experts-exchange.com/questions/27730495/Outlook-VBA-Code-Delete-Items-in-Sub-Folder-in-additional-mailbox-when-Outlook-Opens-Code-provided-so-far.html
It's a great script
I'm looking someting like that but with one step further
is it possible to delete every item in folder and its subfolder
ex:
\\pstname\Inbox\Fred\[ALL] subFolder
assuming that there are a lot of subs and they can possibly change
so I want the script able to look all sub folders in a dynamical way
https://www.experts-exchange.com/questions/27730495/Outlook-VBA-Code-Delete-Items-in-Sub-Folder-in-additional-mailbox-when-Outlook-Opens-Code-provided-so-far.html
It's a great script
I'm looking someting like that but with one step further
is it possible to delete every item in folder and its subfolder
ex:
\\pstname\Inbox\Fred\[ALL]
assuming that there are a lot of subs and they can possibly change
so I want the script able to look all sub folders in a dynamical way
ASKER
I have a compilation error on thoses lines
Call DeleteOlderInSub(Applicati on.Session .Folder("p stname").F olders("In box").Fold ers("Fred" ), DateAdd("d", -1, Now())
DeleteOlderInSub(oSubFolde r, oldDate)
Call DeleteOlderInSub(Applicati
DeleteOlderInSub(oSubFolde
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is what I was expected
Thank you very much for your help
Thank you very much for your help
Open in new window