+ Reply to Thread
Results 1 to 3 of 3

Macro to Print multiple sheets

Hybrid View

  1. #1
    Registered User
    Join Date
    11-15-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2013
    Posts
    54

    Macro to Print multiple sheets

    Hello everybody I am trying to print multiple sheets from the same work book at the same time. I know I could record a macro to do it. My question is could you use an if then statement to print based on if a cell had a value in it?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,703

    Re: Macro to Print multiple sheets

    Simple answer is yes. Why don't you present us with your recorded macro and tell us what you would like to change or amend to make it work for you.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    11-15-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2013
    Posts
    54

    Re: Macro to Print multiple sheets

    I recorded printing all of the sheets, all of them are 6 pages long. I need to only print the pages that have data in them. I will attach a copy of the work book to so you can see what I am talking about.
    Sub Print_Sheets()
    '
    ' Print_Sheets Macro
    '
    
    '
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
            IgnorePrintAreas:=False
        Sheets("HGBT").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
            IgnorePrintAreas:=False
        Sheets("HGT").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
            IgnorePrintAreas:=False
    End Sub
    If anybody has any questions, please let me know
    Attached Files Attached Files

+ 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. Macro to print multiple sheets
    By queenstarks in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-24-2014, 05:47 PM
  2. [SOLVED] Macro to Print Multiple Sheets to Single PDF
    By LEber in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-09-2013, 09:52 AM
  3. MACRO to print multiple sheets to multiple PDF's with different names
    By bruwer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-15-2010, 07:03 AM
  4. Replies: 8
    Last Post: 10-19-2010, 09:28 AM
  5. Macro: To print multiple sheets in a folder
    By NZMax in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-16-2009, 01:07 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