Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. warrenstow

    How do I remove vpagebreaks using code

    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...

Part and Inventory Search

Back
Top