Link to home
Start Free TrialLog in
Avatar of bellboy2k
bellboy2kFlag for United States of America

asked on

vba code to delete all messages in a folder

Hi,

I need vba code to delete all messages in a folder. I currently have another macro that saves all files automaticaly, and would like to deete the files after they have been saved.

Andy
ASKER CERTIFIED SOLUTION
Avatar of Brian Mulder
Brian Mulder
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bellboy2k

ASKER

bruintje,

I got an error on intItems = objInbox.Items any ideas?

Andy
sorry that should be the count

intItems = objInbox.Items.Count
bruintje,

Thanks thst worked great, how would I get it to delete the files from a subfolder of the Inbox?

Andy