Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sorting in Excel
Message
De
29/01/2004 14:01:20
 
 
À
29/01/2004 12:37:30
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00871887
Message ID:
00871944
Vues:
24
>Can anyone tell me how to automate a sort in excel? I've tried several varieations on the macro code but can't quite seem to get it right.
>
>Here's my latest try which doesn't work.
>
>oSheet.Range("A6:W155").Sort(_Key1:=oSheet.Range("D6"))
>

Without testing, I think the only problem is the way you're passing the parameter. VFP doesn't support named parameters the way VBA does. You have to pass just the parameter value in the right position:

oSheet.Range("A6:W155").Sort(oSheet.Range("D6"))

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform