Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sorting in Excel
Message
From
29/01/2004 14:01:20
 
 
To
29/01/2004 12:37:30
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00871887
Message ID:
00871944
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform