Word 2007: macro to attach a pdf file to an email

  • Hello!
    I hope someone can help me.
    I have following macro, that sends an email from Word document. It places prederermined text, subject line and email address into email. The only issue I'm having, is that I'm unable to tell macro to grab a pdf document from the specific location(web-site) and add it as an attachment to my document.

    Here's part of the macro I'm working on right now

  • Re: Word 2007: macro to attach a pdf file to an email


    Solved!
    add following code after oItem.Display

    Code
    oItem.Attachments.Add "http://www.[URL="http://collaboration.1dc.com/sites/ms/pm/ISST2/Products/Leasing/Lease%20Terms%20%20Conditions.pdf"]path to your pdf file.pdf[/URL]"

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!