Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automating Excel
Message
De
09/12/1999 16:36:01
 
 
À
09/12/1999 15:05:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00301212
Message ID:
00301319
Vues:
23
I'm assuming what the problem is here. But xlLandscape is a VB constant. There is a list of the constants here in the file section somewhere. If you include that file, it should work.

Pf


>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.

(On an infant's shirt): Already smarter than Bush
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform