+ Reply to Thread
Results 1 to 4 of 4

Save sheet as PDF with specific file path

  1. #1
    Registered User
    Join Date
    01-31-2016
    Location
    Florida, USA
    MS-Off Ver
    13
    Posts
    26

    Save sheet as PDF with specific file path

    I use this code to save sheets as a .PDF with the sheet tab and year as the file name which works fine.
    I would like it to point to a specific folder so the user doesn't have to choose a location on his/her own.
    I tried something like: ChDir "C:\Documents\Supplies" but cannot make it work. Still opens a general save dialog box.
    Any ideas? All help is appreciated........

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,829

    Re: Save sheet as PDF with specific file path

    Try using SaveAsFilename rather than GetSaveAsFilename
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    01-31-2016
    Location
    Florida, USA
    MS-Off Ver
    13
    Posts
    26

    Re: Save sheet as PDF with specific file path

    Errors out when I change to SaveAsFilename

  4. #4
    Registered User
    Join Date
    01-31-2016
    Location
    Florida, USA
    MS-Off Ver
    13
    Posts
    26

    Re: Save sheet as PDF with specific file path

    Figured it out...
    Changed:

    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. [SOLVED] vba to save document to specific file path
    By shaz0503 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-19-2014, 08:16 PM
  2. Automatically open a file in a specific file path when another sheet is opened
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2014, 11:05 AM
  3. [SOLVED] macro to save sheet with specific file name from sheet
    By mezza89 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-05-2013, 12:04 PM
  4. Save file with specific name and ask user for the path
    By kammariarun in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-08-2013, 05:19 PM
  5. Macro to save sheet as CSV using a dynamic file name and file path
    By chris.tinta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2013, 10:45 AM
  6. [SOLVED] Get file path from a cell, run a check to see if the file has a specific sheet if yes copy
    By Martha44 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-04-2013, 03:35 AM
  7. Replies: 0
    Last Post: 01-27-2013, 12:13 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