Consulting

Results 1 to 6 of 6

Thread: Generate path of a file in column and send email as attachment based on a cell value

  1. #1

    Generate path of a file in column and send email as attachment based on a cell value

    Hi Team,

    I have got a macro from one of the forum member "p45cal" to generate pdfs based on data validation list. The name of the PDFs generated is based on the list items.

    Now here come my requirement, that, the generated pdfs which were in a folder should go as a attachment (using outlook 2010).

    In the excel, with in a against the list of items there is a column named email.
    Macro should find the name of the pdf and send the email with the attachment to the email in the cell.

    Attaching the file for reference.

    Thanks in advance.
    Chaitanya
    Attached Files Attached Files

  2. #2

  3. #3
    Hi Team,Any suggestions some where i can find the solution from the team?

  4. #4
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location

  5. #5
    Hi Kenneth,Thanks a lot for the site. I have gone through it, is able to send the sheets/workbook as attachment. But, I need the generated PDFs which where saved in a folder should be sent using outlook for the emails in a column of the excel file attached. The generated PDFs in a folder, the path of the individual PDF should be generated in the excel column and then be able to send the file as a attachment. Hope I am clear.Thanks.

  6. #6
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    No, that is not clear.

    Did you download his pdf examples: http://www.rondebruin.nl/win/s5/pdf.htm

    For the example showing how to add an attachment, see his function: RDB_Mail_PDF_Outlook()

    If you know the pdf drive:\path\filename.pdf, then just use that string for the attachment in Ron's function.

    Ron also provided examples on emailing to those in a range and shows the attachment option as well. http://www.rondebruin.nl/win/s1/outlook/bmail5.htm

Posting Permissions

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