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!

VBA Excel

Status
Not open for further replies.

BlindPete

Programmer
Jul 5, 2000
711
1
0
US
Andbody know how to insert a page break into an excel worsheet using automation. My application does not have access to the Excel constants and therefore the vbax99.chm is not much help.

'page break here
oWS.Rows(10).PageBreak = 3 'Don't know what the value needs to be
-Pete
 

If you want to add a PageBreak at a specific point then:

YourSheet.HPageBreaks.Add Before:=ActiveCell

Reference the Excel OLB in your VB App and you can see all constants, objects and methods.

Tom


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top