Making an Excel tab not print?

后端 未结 7 554
野性不改
野性不改 2020-12-19 16:35

Is there any way in Excel to make it so that a particular tab isn\'t included when you print the entire workbook? As in, Sheet1, Sheet2, and Sheet3 print, but not Sheet4.

相关标签:
7条回答
  • 2020-12-19 16:43

    Why all the crazy coding?

    Just click on the first tab you want to print and make it active. Then hold down control, and click on each additional tab you want to print, excluding the tab, or tabs you don't want to print. Then go to "file" and then "print" like you normally would. Make sure "print active sheets" is selected, then print.

    It prints only the tabs you selected. Simple, and no need to complicate things to ridiculous levels of unnecessary silliness.

    0 讨论(0)
  • 2020-12-19 16:47

    Just set the print area on the tab you don't want to print to a single blank Cell, This will mean that it will print a single blank page rather than the reams of data that I presume you are trying to avoid printing.

    0 讨论(0)
  • 2020-12-19 16:49

    To do this manually just select all the sheets you want to print by clicking on the first sheet tab label, then hold down the 'Shift' key and click on the last sheet tab label. (If you have a large number of sheets use the small arrow keys to navigate)

    If you need to unselect a sheet in the middle hold down the CTRL key and click that sheet.

    Alternately you can hold the CTRL key and click on each sheet tab label.

    The sheet colour will be white (with a gradient on the none active sheet) to show they have been selected.

    WARNING: When multiple sheets are selected any change on one will be repeated in the same cells on all of them.

    0 讨论(0)
  • 2020-12-19 16:54

    Actually the answer seems to be surprisingly simple.

    If you hide the sheet, it will not be printed when you print the entire workbook.

    You won't need a macro, just

    1. right click on the sheet name
    2. choose hide

    If needed you or other users can unhide it as well.

    0 讨论(0)
  • 2020-12-19 16:56

    If you do not want to use VBA or hide the sheet, you could just set print area on an empty cell of the sheet you do not want to print.

    The tab will still be printed but the result will be an empty sheet.

    0 讨论(0)
  • 2020-12-19 17:00

    These answers will require the use of macros.
    Hide the sheet before printing.

     sheets("WorksheetToNotPrint").visible = xlSheetHidden 'or 0
    

    or

     sheets("WorksheetToNotPrint").visible = xlSheetVeryHidden 'or 2
     'used if you don't want people to unhide the worksheet without knowing code
    

    and

     sheets("WorksheetToNotPrint").visible = xlSheetVisible 'or -1
    

    when done

    another option is to print the sheets you want printed (may be useful if you only want a few sheets printed:

    Sub Print_Specific_Sheets()
    Sheets(Array("Sheet1", "Sheet2", "Sheet4")).Select
    ActiveWindow.SelectedSheets.PrintOut
    Sheets("Sheet1").Select
    End Sub
    
    0 讨论(0)
提交回复
热议问题