
- HOW TO SET UP PRINT AREA IN EXCEL 2016 FOR MAC HOW TO
- HOW TO SET UP PRINT AREA IN EXCEL 2016 FOR MAC CODE
- HOW TO SET UP PRINT AREA IN EXCEL 2016 FOR MAC WINDOWS
This macro toggles "Page Breaks" on every sheet in every open workbook. Macro toggles print preview lines on every sheet in all open workbooks Sh.DisplayPageBreaks = Not sh.DisplayPageBreaks The following macro shows or hides "Page Breaks" on every sheet in the current workbook. Macro toggles print preview lines on every sheet in the workbook Sub Macro1()ĪctiveSheet.DisplayPageBreaks = Not ActiveSheet.DisplayPageBreaks If "Page Breaks" are hidden, the macro makes them visible. Meaning, if "Page Breaks" are visible this macro hides them.
HOW TO SET UP PRINT AREA IN EXCEL 2016 FOR MAC CODE
Using that code you can now show or hide "Page Breaks" on the active sheet with a macro. Macro toggles print preview lines on the active worksheet Use the above line in the examples below if you don't want to toggle print preview lines. What happens if we record a macro while disabling "Page Breaks" in Excel options? This is what the macro recorder returns: Macro1() In fact, you can save useful macros in your personal macro workbook and become a lot more efficient in your work. If you want to use it any workbook you open, put it in a personal macro workbook and link it to the Quick Access Toolbar or the ribbon. If you often disable print preview lines manually why not build a macro that does it for you? It is not hard, simply copy the macro and paste it to your workbook module.
HOW TO SET UP PRINT AREA IN EXCEL 2016 FOR MAC WINDOWS
HOW TO SET UP PRINT AREA IN EXCEL 2016 FOR MAC HOW TO
How to remove print preview dotted lines If you are familiar with the Immediate window in the Visual Basic Editor you can probably more quickly delete the print preview lines than through Excel Options. How to remove dotted lines (Immediate window)


I made a macro, demonstrated later in this article, that you can use to quickly disable the print preview lines, put it in your personal toolbox and use it whenever necessary.

How to remove print preview lines using Immediate window.
