Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automating Excel
Message
From
09/12/1999 15:05:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Automating Excel
Miscellaneous
Thread ID:
00301212
Message ID:
00301212
Views:
101
I am automating a process of opening an excel spreadsheet and doing pagesetup options before sending it to the printer. I recorded a macro in excel and attempted to incorporate it into my code. I included the following to print landscape and to repeat rows 1 and 2 on every page:

ObjExcel.ActiveSheet.Pagesetup.Orientation(xlLandscape)
ObjExcel.ActiveSheet.Pagesetup.PrintTitleRows("$1:$2")

The code is not working properly. Could you please assist me with the correct syntax.

Thanks.
Next
Reply
Map
View

Click here to load this message in the networking platform