Macro to purge the message

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.
 
G

Guest

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top