Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Page Break
Message
From
12/05/2006 09:07:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
12/05/2006 08:44:14
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01121270
Message ID:
01121278
Views:
9
This message has been marked as the solution to the initial question of the thread.
>I am trying to apply Page Breaks to an excel sheet object. I have identified the cells to apply the breaks. The syntax I get from the Macro goes like;
>
> ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=ActiveCell
>
>I How do I apply this using VFP Syntax assuming the break is to be at cell Loxls.Cells(10,1) ?.

Named parameters are not supported in VFP, but usually Excel has an alternative syntax, which places the parameters (without the names) between parentheses.

So, assuming that loXls is a spreadsheet, I guess that would translate to something similar to:
loSheet.HPageBreaks.Add(loXls.Cells(10,1))
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform