Outlook VBA Macros

  • Thread starter Thread starter MCPAlvarez
  • Start date Start date
M

MCPAlvarez

Hello,

I'd like a button on the toolbar of a new Outlook 2003 message that does a
few things (macro).

First it checks two options under "Voting and Tracking options" under
"Message Options", "Request a delivery receipt...." and "Request a read
receipt..."for this specific message.

Then i'd like for the macro/vba to attach the following file
"C:\FTPLOG\ftp.log"

Then I would like for it to automatically "Send" the message.

Lastly, I would like for it to delete the file it just sent
"C:\FTPLOG\ftp.log", to be ready for the next transmission.

Where do i even start to get this going? Please help...thanks in advance,
really thanks.

MCPAlvarez
 
You can access the selected item of a folder with the Selection collection
of the ActiveExlorer object. Or use ActiveInspector.CurrentItem for an
opened item.

See the MailItem object in the object browser (f2) and what properties and
methods are available, for instance ReadReceiptRequested.

Via Attachments.Add you can add a file. If there's no recipient yet, add one
via Recipients.Add. Eventually call the Send method.

For every mentioned property or method select it in the object browser, and
click f1 for more help and a VBA example.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Thu, 5 Mar 2009 12:12:01 -0800 schrieb MCPAlvarez:
 
Back
Top