+ Reply to Thread
Results 1 to 7 of 7

Save multiple sheet as PDF file

  1. #1
    Registered User
    Join Date
    02-29-2020
    Location
    Malaysia
    MS-Off Ver
    Office 365
    Posts
    87

    Save multiple sheet as PDF file

    Hi All,

    I want to save the file as PDF for 3rd and 4th sheet in 1 PDF file, i.e. 3rd sheet will be 1st page and 4th sheet will be 2nd page of the pdf file. What's the macro code do to that?
    Code below only manage to save 3rd sheet for the PDF. What's the code need to add in order to make it happen?

    Hope you all can guide me. Thank you.


    Please Login or Register  to view this content.
    Last edited by babychai; 04-26-2020 at 06:13 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Save multiple sheet as PDF file

    Then it becomes something like this. Customize the path and sheet names yourself.

    Please Login or Register  to view this content.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Save multiple sheet as PDF file

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  4. #4
    Registered User
    Join Date
    02-29-2020
    Location
    Malaysia
    MS-Off Ver
    Office 365
    Posts
    87

    Re: Save multiple sheet as PDF file

    Quote Originally Posted by Vraag en antwoord View Post
    Then it becomes something like this. Customize the path and sheet names yourself.

    Please Login or Register  to view this content.
    Hi,

    3rd and 4th sheet name is always changeable, therefore is not ideal to put specific name of the sheet. Is there any alternative way?
    Possible to use offset code to replace the sheet name?
    Last edited by babychai; 04-25-2020 at 12:58 PM.

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Save multiple sheet as PDF file

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  6. #6
    Registered User
    Join Date
    02-29-2020
    Location
    Malaysia
    MS-Off Ver
    Office 365
    Posts
    87

    Re: Save multiple sheet as PDF file

    Quote Originally Posted by bakerman2 View Post
    Please Login or Register  to view this content.
    Thank you very much. this work great.

    Thanks all for the help

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Save multiple sheet as PDF file

    Administrative Note:

    Please don't quote entire posts unnecessarily. They clutter threads and make them hard to read.
    Use the "Quick reply" instead
    Thanks

+ 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 specific sheet as CSV file prompting for a file name
    By Onleme in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2018, 09:17 PM
  2. Save Active sheet as .pdf - Default file save name
    By Pacific_Quest in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2017, 07:45 AM
  3. [SOLVED] Save Each Worksheet as a PDF File and Name each File Based on a Cell Value in each Sheet
    By hamidxa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2016, 09:36 AM
  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. [SOLVED] One Report, create multiple sheets, save each sheet in a seperate excel file
    By sammymalta in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-04-2013, 07:12 AM
  6. [SOLVED] VBA to save active sheet as new file with save as option
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-14-2013, 10:54 AM
  7. 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

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