I am working on a simple macro to let users remove unwanted page breaks with a keyboard shortcut. Here is what I have.
Sub RemovePageBreaks()
ActiveWindow.SelectedSheets.HPageBreaks.Delete Before:=ActiveCell
End Sub
Seems like it should work but I get the error message: "Object doesn't support this property or method."
Any help appreciated.
Vernon
Sub RemovePageBreaks()
ActiveWindow.SelectedSheets.HPageBreaks.Delete Before:=ActiveCell
End Sub
Seems like it should work but I get the error message: "Object doesn't support this property or method."
Any help appreciated.
Vernon