Macro to add a pdf attachment to an appointment form

C

Chris Bumatay

I am new at macros. I want to be able to use a macro to automatically
attach a pdf to an appointment form for Outlook 2002. The pdf will
always be the same file name and in the same location.
Thanks,
Chris



*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
S

Sue Mosher [MVP-Outlook]

Try this simple VBA procedure to attach a known, named PDF file to the currently open Outlook item:

Sub AttachPDF()
Dim objItem
On Error Resume Next
Set objItem = Application.ActiveInspector.CurrentItem
objItem.Attachments.Add "C:\myfile.pdf"
Set objItem = Nothing
End Sub
 

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