Macro to purge the message

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi There,

I need your help to prepare a macro for me to purge the message from outlook.

We have already set up in outlook that when ever we type "purge" in Follow
up flag & press enter it purge the message automatically but that we have to
do manually therefore we need your assistance to prepare a macro which help
us to delete10 messages at time by using vb script.

Appreciate your kind assistance.

Thanks & Best Regards,
Kam.
 
By purge do you mean permanently delete? If, the Outlook Object Model
doesn't support this; all deleted items go to the Deleted Items folder.
You'd have to use CDO or Redemption (http://www.dimastr.com) to permanently
delete an item.

Have you tried looping through the Items collection of the current folder
(ActiveExplorer.CurrentFolder) and looking at the value of the
MailItem.FlagRequest property to see if it should be deleted?
 
Back
Top