Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp5.0 and MS Excel Automation
Message
From
18/06/1998 04:20:24
 
 
To
17/06/1998 18:10:42
Pamela Bulmahn
The University of Iowa
Iowa, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00109311
Message ID:
00109417
Views:
27
>I am attempting to use MS Excel to produce a report from vfp data. I have the spreadsheet loaded and formatted just the way I want it, except, I can not get hard page breaks in. I have tried every possible format I can think of but it still gives me an error. The actual line of code I have is:
> objexcel.Worksheets(1).HpageBreaks.Add.Range("A166")
>The error message is:
> Invalid number of parameters.
>Thanks for your help.

Try to use:

objexcel.worksheets(1).Range("C10").Select
objexcel.worksheets(1).HPageBreaks.Add(objexcel.ActiveCell)
objexcel.worksheets(1).VPageBreaks.Add(objexcel.ActiveCell)
Saludos,
A.G.P.
---------
Previous
Reply
Map
View

Click here to load this message in the networking platform