A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Macro to purge the message



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 17th 06, 11:36 AM posted to microsoft.public.outlook.program_vba
Kam
external usenet poster
 
Posts: 2
Default Macro to purge the message

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.
Ads
  #2  
Old October 17th 06, 07:22 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Macro to purge the message

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?

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Kam" wrote:

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.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
purge old calendar items jakjak Outlook - Calandaring 1 September 17th 06 04:25 AM
edit message macro BorisS Outlook and VBA 1 June 19th 06 06:28 AM
Outlook 2007: Purge Deleted Items doesn't work [email protected] Outlook - General Queries 8 May 31st 06 08:51 AM
Outlook: Auto-purge via IMAP. thekman Outlook - Installation 1 February 21st 06 05:27 PM
Macro within a Mail Message Tia Outlook and VBA 1 February 7th 06 03:47 PM


All times are GMT +1. The time now is 07:02 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.