+ Reply to Thread
Results 1 to 5 of 5

Save as PDF

  1. #1
    Forum Contributor
    Join Date
    06-21-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    179

    Save as PDF

    Hello,

    I am looking for some help with a code for a macro that:

    Gets a file name from cell (AP3)
    uses that name to save or export the file to a PDF.

    I have a macro that can do the above in the current directory. However, I am not knowledgeable enough to figure out how allow the user the ability to select the directory path to save the file.

    I am sure this has been done, but I am having difficulties in locating it in the archives.


    Thanks in Advance.
    Tim

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Save as PDF

    Perhaps if you posted the code you have we could make amendments.

    No reason to re-invent the wheel.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Forum Contributor
    Join Date
    06-21-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: Save as PDF

    Below is a code I am using to run a save as .xlsm file. it allows the user to change the directory and it work great. However, I don't know how to change it so that it saves the file as a PDF.

    Please Login or Register  to view this content.
    Based on help from Excel forum, I have the following code that saves the file as a PDF, but only in the current working directory.

    Please Login or Register  to view this content.
    I hope to combine the two to make it work like the first code.

    TIA.

  4. #4
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Save as PDF

    Maybe
    Please Login or Register  to view this content.
    e/ This code doesn't have any error handling so you'll probably get a run-time error if cancel is pressed on the saveas dialog box.

  5. #5
    Forum Contributor
    Join Date
    06-21-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: Save as PDF

    Awesome. Works great..

    Thank you very much!!!

+ 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. Replies: 1
    Last Post: 07-24-2012, 09:53 AM
  2. Templates - Forcing Save as rather than Save on first save
    By Spitinyari in forum Excel General
    Replies: 4
    Last Post: 04-26-2012, 11:32 AM
  3. Disable Save As and Save - enable Save via button
    By LampCommandr in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-07-2011, 05:42 PM
  4. How to diasble save and save as menu but allow a save button
    By hon123456 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2006, 04:55 AM

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