![]() Meaning, if "Page Breaks" are visible this macro hides them. 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. Disable checkbox "Show Page Breaks" located below "Windows Options".Press with left mouse button on View in "Authoring".Press with left mouse button on OK button.Disable checkbox Page Breaks found in Windows Options.Press with left mouse button on the View tab.Press with left mouse button on Options.Disable the check box "Show Page Breaks".Find "Display Options for this Worksheet".Press with left mouse button on tab "Advanced" in the left window.Press with left mouse button on "Excel Options".Press with left mouse button on the Office button located at the top left side of your screen.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) Press with left mouse button on "OK" button.Scroll down to "Display Options for this worksheet".Press with mouse on tab "File" on the ribbon. ![]() How to remove dotted lines (Excel Options) It seems that if you close the workbook and then open it again the print preview lines disappear, however, this is in my opinion to much work to only remove the lines. There is also a macro-enabled workbook for you to get further down in this post. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |