Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automating Excel
Message
De
09/12/1999 15:05:41
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Automating Excel
Divers
Thread ID:
00301212
Message ID:
00301212
Vues:
99
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform