Macro to add a pdf attachment to an appointment form

  • Thread starter Thread starter Chris Bumatay
  • Start date Start date
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!
 
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
 
Back
Top