I'm trying to remove any vPageBreaks using VB.
This is the code I'm using
If xlBook.ActiveSheet.VPageBreaks.Count > 0 Then
xlBook.ActiveSheet.VPageBreaks(1).DragOff xlToRight, 1
End If
I get the following error on the second line
1004 - Application-defined or object-defined error...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.