Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel Automation
Message
De
29/05/2003 02:26:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
29/05/2003 01:28:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00793810
Message ID:
00793820
Vues:
35
>I am having trouble with Excel automation, I am trying to sort on column 7 within the spreadsheet from within vfp. The latest code I am using is
>
>.range(.cells(1,1),.cells(65536,256)).sort(.range(.cells(1,7),.cells(65536,7)),xlDescending,xlGuess,1,"False",xlToptoBottom)
>
>I got this code from looking at the macro within Excel, but no matter what I try I am either getting an error or it doesn't sort. If any one can help with this, it would be appreciated.
>
>Darren Donald

Have you seen my introductory article on Excel automation?

In this case, you need the constants xlDescending, etc. - available from the download section (search for "constants").

What WITH statement are you using with the above code?

What error message do you get?
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform