+ Reply to Thread
Results 1 to 4 of 4

Saving Worksheets as individual PDF files base on checkbox selection.

  1. #1
    Registered User
    Join Date
    11-11-2013
    Location
    Fareham
    MS-Off Ver
    Excel 2003
    Posts
    5

    Saving Worksheets as individual PDF files base on checkbox selection.

    Afternoon All

    I have the following code that generates a New folder based on a cell value and then splits the Workbook into separate tabs and saves each one as a PDF file using the Tab name as well as other data from a Data worksheet as the file name.
    Some of the worksheets are not required and not all of the other worksheets are required all the time. Is there a way I can modify the code below to only save the tabs indicated by checkboxes from a Userform, Checkbox1 = Sheet1, Checkbox2 = Sheet2, Checkbox3 = Sheet3, Checkbox4 = Sheet4, any combination of these.

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

    Steve

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: Saving Worksheets as individual PDF files base on checkbox selection.

    If you add a conditional into your loop, along the lines of this:

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    11-11-2013
    Location
    Fareham
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Saving Worksheets as individual PDF files base on checkbox selection.

    Thank you for you tips, i have been trawling this site and others and have change the code. I now have a Userform with 4 checkboxes, each referring to a Worksheet. If the checkbox is true then that worksheet is saved as a PDF in a folder also generated at the time of export.

    Please Login or Register  to view this content.
    Not the neatest of code, but does the job.

    Thanks again.

    Steve

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: Saving Worksheets as individual PDF files base on checkbox selection.

    "Does the job" is the only requirement for code, as far as I'm concerned Congrats!

+ 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. Automating Filtering/Saving as Individual Files
    By Ange3000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2019, 02:33 PM
  2. VBA - saving specific pages to PDF via Checkbox selection
    By fraser- in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-26-2016, 05:56 PM
  3. Saving Individual Tabs as Files
    By DonHuff in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-06-2015, 12:18 PM
  4. [SOLVED] Saving rows by order number as individual files
    By djfscouse in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2013, 02:44 AM
  5. [SOLVED] VBA, filtering, formatting and saving various formatted versions to individual files
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-26-2013, 07:25 PM
  6. dynamically saving excel tabs to individual .csv files
    By xcelnovice101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-25-2012, 02:12 AM
  7. Saving worksheets within workbooks as individual files
    By Colin Hayes in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-11-2006, 01:55 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