PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Re: macro del email

Reply

Re: macro del email

 
Thread Tools Rate Thread
Old 18-09-2003, 02:54 PM   #1
Sue Mosher [MVP]
Guest
 
Posts: n/a
Default Re: macro del email


Two methods to delete an item permanently:

1) Use the Delete method on the item, then find the same item in the Deleted Items folder, maybe using the Find method to match the subject, and delete it, too.

2) Use CDO's Delete method on the item, which will delete it permanently in one step. Sample code at http://www.outlookcode.com/codedetail.aspx?id=41

Note that CDO is not part of the default Outlook installation. You may need to rerun setup and add it.

VBA basics -- http://www.slipstick.com/dev/vb.htm
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Fredo1" <fredo1@optushome.com.au> wrote in message news:eS1SSVefDHA.1732@TK2MSFTNGP12.phx.gbl...
> Can someone tell me how to write a macro for outlook 2000 & 2002.
> .
> I want to create a macro that I can place a second delete button next the
> present delete button in outlookto do the following
> I get alot of emails and some emails I want to delete permanently at a
> press of a button and other emails I want to place (delete) in the trash
> bin to be emptied later if I want to.
> Thanks
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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