+ Reply to Thread
Results 1 to 7 of 7

Save WS as PDF in Specific Location

  1. #1
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Devon, England
    MS-Off Ver
    Excel 2003
    Posts
    128

    Save WS as PDF in Specific Location

    hi all,

    I have the code below that saves the worksheet as a pdf. it saves it to My Documents as default, how do I change it to save to a specific destination?

    Please Login or Register  to view this content.
    thanks in advance

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Save WS as PDF in Specific Location

    what is the value in
    Please Login or Register  to view this content.
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Devon, England
    MS-Off Ver
    Excel 2003
    Posts
    128

    Re: Save WS as PDF in Specific Location

    hi Naveed,

    the WS I'm saving is a Purchase Order, the value in ("E7") is the Purchase Order Number which I generate manually.

    Nick

  4. #4
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Save WS as PDF in Specific Location

    Hi Nich

    replace your code with below one

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Devon, England
    MS-Off Ver
    Excel 2003
    Posts
    128

    Re: Save WS as PDF in Specific Location

    hi Naveed,

    not sure how I write the file path within the quotes. I'm trying to save it to my "Z drive", so is it "=z:\Folder\"

    Nick

  6. #6
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Save WS as PDF in Specific Location

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    05-01-2013
    Location
    Devon, England
    MS-Off Ver
    Excel 2003
    Posts
    128

    Re: Save WS as PDF in Specific Location

    Thanks Naveed

+ 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] Save to specific location
    By PDBartlett in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-26-2014, 05:15 AM
  2. [SOLVED] Macro to manually choose PDF file and save it to a specific location with specific name
    By tnuis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2014, 07:47 AM
  3. Replies: 0
    Last Post: 07-11-2013, 02:08 AM
  4. Replies: 1
    Last Post: 06-30-2013, 05:58 PM
  5. Save to specific location
    By LB79 in forum Excel General
    Replies: 2
    Last Post: 08-25-2005, 06:02 AM

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