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

Excel Question

Status
Not open for further replies.

Fleer

Programmer
Mar 8, 2001
11
0
0
BE
I created an excel application in VFP, but I can't find out how I can insert a Horizontal Page Break in my XL-file

this is an example prog.

PUBLIC poxlApp
poxlApp=createobject("Excel.Application")
poxlApp.Workbooks.Add
poxlApp.Range("A2").Select

and then to insert the pagebreak, in VBA it's like this
"ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=ActiveCell"

Any suggestion on how to put this in VFP is appreciated.

Fleer
 
oCell=poxlapp.activecell
poxlapp.ActiveWindow.SelectedSheets.HPageBreaks.Add(oCell) Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top