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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Excel

Status
Not open for further replies.

BlindPete

Programmer
Jul 5, 2000
711
US
I'm exporting to info to excel using VBA. How do I insert a page break at a particular row without using the excel constants?


oWS.Rows(10).PageBreak = 3 'Don't know what the value needs to be



-Pete
 
See if this works:

Range("A10").Select
ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=ActiveCell Jim Lunde
compugeeks@hotmail.com
Custom Application Development
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top