Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pagebreak in Excel with OLE Automation
Message
From
05/06/1999 23:45:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Pagebreak in Excel with OLE Automation
Miscellaneous
Thread ID:
00226890
Message ID:
00226890
Views:
95
I need to insert a page break in an Excel spreadsheet using OLE Automation. When I create an Excel macro to insert a page break and examine the macro in the VBA editor I see

ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=ActiveCell

The 1st part looks OK, but I can't find "ActiveCell" in the Type Library and the := in VBA probably means something different than the = that I am used to seeing in the VBA code. In short, what is the VFP code to insert a page break in the Excel spreadsheet?

Tim
Next
Reply
Map
View

Click here to load this message in the networking platform