+ Reply to Thread
Results 1 to 3 of 3

Return FolderPath to add attachment to email

  1. #1
    Forum Contributor
    Join Date
    11-15-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    163

    Return FolderPath to add attachment to email

    Hi All,

    I have code which creates a folder and saves a sheet within the folder as PDF. This works fine but when I try to generate an email with PDF attachment I cant seem to get the folder path to return in my code.

    Any help appreciated.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Return FolderPath to add attachment to email

    I guess your A3 in reality does not include the ".pdf" extension which gets added when the export to pdf is done. hence your Dir fails and Create_PDF never gets a value. either specify the .pdf in the cell or add it in the code.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Contributor
    Join Date
    11-15-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    163

    Re: Return FolderPath to add attachment to email

    Quote Originally Posted by JosephP View Post
    I guess your A3 in reality does not include the ".pdf" extension which gets added when the export to pdf is done. hence your Dir fails and Create_PDF never gets a value. either specify the .pdf in the cell or add it in the code.
    Doh!

    Thanks JP

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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