+ Reply to Thread
Results 1 to 8 of 8

How to save an excel sheet as PDF file

  1. #1
    Forum Contributor
    Join Date
    08-18-2017
    Location
    SOUTH AFRICA
    MS-Off Ver
    MS EXCEL 2016
    Posts
    127

    How to save an excel sheet as PDF file

    Good day

    Can anyone please assist on how to save the active excel sheet as pdf to a location and also use cell "F5" as the file name.

    Thanks;
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: How to save an excel sheet as PDF file

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,700

    Re: How to save an excel sheet as PDF file

    Or another possibility
    Please Login or Register  to view this content.
    The inherent weakness of the liberal society: a too rosy view of humanity.

  4. #4
    Forum Contributor
    Join Date
    08-18-2017
    Location
    SOUTH AFRICA
    MS-Off Ver
    MS EXCEL 2016
    Posts
    127

    Re: How to save an excel sheet as PDF file

    Hi there the code works but I want to save it to a different location
    Can you include a field where I can add the file location at

  5. #5
    Forum Contributor
    Join Date
    08-18-2017
    Location
    SOUTH AFRICA
    MS-Off Ver
    MS EXCEL 2016
    Posts
    127

    Re: How to save an excel sheet as PDF file

    Quote Originally Posted by 6StringJazzer View Post
    Please Login or Register  to view this content.

    Hi there the code works but I want to save it to a different location
    Can you include a field where I can add the file location at

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,700

    Re: How to save an excel sheet as PDF file

    Both macros have a field for the location. Since you don't tell us what it is, we can't change it.
    In Post #3, change "ThisWorkbook.Path" to the location you need like "C:\some folder name here\another folder name here" & "" & [F5] & ".PDF"
    Use the same in the other code where it says Filename:=

  7. #7
    Forum Contributor
    Join Date
    08-18-2017
    Location
    SOUTH AFRICA
    MS-Off Ver
    MS EXCEL 2016
    Posts
    127

    Re: How to save an excel sheet as PDF file

    I'm sorry I forgot to give you the file location address

    C:\TSHEPO\COSTING REPORTS

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: How to save an excel sheet as PDF file

    Just use that path in the code given in jolivanes' post.

+ 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. Save each row in a sheet including header as separate excel file.
    By Blondyvl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2022, 04:57 AM
  2. [SOLVED] Save each sheet in workbook to different excel file
    By Jarvin24 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2016, 11:25 AM
  3. [SOLVED] Macro to Save Excel sheet as comma delimited txt file
    By dileeprajam in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 04-22-2014, 05:01 PM
  4. Excel 2010 multiple sheet selected to save each as a different PDF file
    By C.ruz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-31-2014, 08:26 AM
  5. save excel sheet as an xml file
    By CELTICTIGGER in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2011, 11:16 AM
  6. Excel kept on asking to save file every time I jump from one sheet to another!
    By timduongt@hotmail.com in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-30-2006, 10:45 PM
  7. Save a sheet as an excel file
    By jt46 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-31-2005, 03:55 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