PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Re: macro del email
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Re: macro del email
![]() |
Re: macro del email |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

