+ Reply to Thread
Results 1 to 6 of 6

Saving specific sheets as PDF with file name consisting of cell info

  1. #1
    Forum Contributor
    Join Date
    08-10-2016
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Office 365
    Posts
    124

    Saving specific sheets as PDF with file name consisting of cell info

    Hi all,

    I have created a template that will need to be filled out on a regular basis and emailed to the customer.
    The Template consists of 2 tabs: "Data" tab and "Print" tab.
    The information will be put into the "Data" tab and the "Print" tab will pull all info and place it into the specific cells.

    Is there a way to create a button on the "Data" tab will save the "Print" tab only as PDF, while using information from specific cells as the name?
    For example: Date/Part #/Rev #.pdf

    Thanks,
    Yuriy Baron

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Saving specific sheets as PDF with file name consisting of cell info

    Here's something,

    Please Login or Register  to view this content.
    Last edited by davesexcel; 09-07-2017 at 12:09 PM. Reason: Edit code

  3. #3
    Forum Contributor
    Join Date
    08-10-2016
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Office 365
    Posts
    124

    Re: Saving specific sheets as PDF with file name consisting of cell info

    This is perfect!
    Would it be very difficult to add a button to the Excel spread sheet to execute this?

    Thank you very much for your help!!

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Saving specific sheets as PDF with file name consisting of cell info

    Just put a button on the sheet, right click and assign the macro to it.

  5. #5
    Forum Contributor
    Join Date
    08-10-2016
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Office 365
    Posts
    124

    Re: Saving specific sheets as PDF with file name consisting of cell info

    I got the button working, and was able to edit the code to fit my needs. I have noticed that it is not saving into the correct directory. The File seems to be going into the documents folder instead of the location of the excel file.

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Saving specific sheets as PDF with file name consisting of cell info

    I added a couple of lines to get the activeworkbook path

+ 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] Saving sheets as file based on a cell value
    By maryflower in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2017, 03:17 PM
  2. Replies: 1
    Last Post: 03-07-2017, 07:49 PM
  3. Saving a Workbook With A Specific File Name in a Specific Location
    By kyjae in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2016, 02:49 PM
  4. Saving a pdf file using the text from a specific cell (but diffreent worksheet)
    By Calamity in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-09-2013, 02:01 AM
  5. [SOLVED] Saving workbook to specific folder with a name based on info in a cell + today's date.
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-24-2012, 10:34 AM
  6. Replies: 2
    Last Post: 04-10-2006, 09:00 AM
  7. Saving a file using a specific name in a cell
    By SU in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-24-2005, 09:06 PM

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