Saturday, April 20, 2019

Disable Page Breaks


Disable Page Breaks
To disable page breaks use this code. It will simply disable page breaks from all the open workbooks.
Sub DisablePageBreaks()
Dim wbAs Workbook
Dim wksAs Worksheet
Application.ScreenUpdating= False
For Each wbIn Application.Workbooks
For Each ShtIn wb.WorksheetsSht.DisplayPageBreaks= False
Next Sht
Next wb
Application.ScreenUpdating= True
End Sub

No comments:

Post a Comment