+ Reply to Thread
Results 1 to 2 of 2

How to attach a PDF to an email using VBA?

  1. #1
    Registered User
    Join Date
    06-18-2012
    Location
    Leamington SPa
    MS-Off Ver
    Excel 2010
    Posts
    6

    How to attach a PDF to an email using VBA?

    Hi all,

    I hope you can help, what I'm trying to do is set up a sheet with a button that the users can press which writes an automatic email to our suppliers and attaches the relevant PDF drawing. I know how to do this by putting the reference in the VBA but the problem is that each job is different and I would like to automate the attachment of the relevant drawing.

    I have written a concatenate cell which will automatically write the correct file reference for the job but pointing to a range when attaching doesn't seem to work. Any ideas how I can get round this?

    Please Login or Register  to view this content.
    This is what I want to do but it doesn't work

    Any suggestions would be greatly appreciated.

    Thanks


    Moderator Edit:

    Welcome to the forum, wattsup.

    Please notice that code tags have been added to your post. The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at the top of the page and read Rule #3.
    Thanks.
    Last edited by Cutter; 09-21-2012 at 10:10 AM. Reason: Added code tags

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: How to attach a PDF to an email using VBA?

    Hi, wattsup,

    maybe the code from Ron de Bruin can help with your problem - have a look at Mail a different file(s) to each person in a range.

    HTH
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1