+ Reply to Thread
Results 1 to 4 of 4

add "SaveAs" to pdf export and email code

  1. #1
    Registered User
    Join Date
    11-05-2009
    Location
    Tennessee
    MS-Off Ver
    Excel 2007
    Posts
    12

    add "SaveAs" to pdf export and email code

    I have the following code working well. I'd like the pdf to be saved to the users local machine before it emails it. The user must be able to choose the path. How can I do this?

    Please Login or Register  to view this content.
    Last edited by matt5596; 02-04-2014 at 12:37 PM.

  2. #2
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: add "SaveAs" to pdf export and email code

    Put this function in the module
    Please Login or Register  to view this content.
    change the part where de pdf is created to:
    It requests to select a folder. If canceled the mydocuments folder is chosen as save folder
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-05-2009
    Location
    Tennessee
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: add "SaveAs" to pdf export and email code

    It prompts the user to select target folder but never sets a filename or saves it to the folder.

    also, how can i get the SaveAs name to show up automatically?

    I use the following code to save Excel but I can't get it to work saving pdf.

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    12-14-2013
    Location
    Tilburg, Nederland
    MS-Off Ver
    Excel 2010
    Posts
    256

    Re: add "SaveAs" to pdf export and email code

    Here a macro what will save the sheet as pdf, after Save as dialog is filled out.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need VBA Code to "redirect" not "forward" an email
    By derrikhu in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 09-08-2013, 10:59 PM
  2. Replies: 0
    Last Post: 11-20-2012, 10:22 AM
  3. Export "Unformatted" Data from Email to Excel
    By timdecker in forum Outlook Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2012, 06:06 PM
  4. Macro Error with code "Range("A65536").End(xlUp).EntireRow.Insert"
    By lukasj13 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-30-2010, 08:48 PM
  5. Modify code to email a selected range or ("print area") in lieu of ActiveSheet
    By robertse in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-15-2010, 05:15 PM

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