Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to sort a col. in Excel
Message
 
 
To
07/07/2011 06:32:38
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01517540
Message ID:
01517545
Views:
40
You have to convert named parameters into positioned according to the Sort method signature
expression.Sort(Key1, Order1, Key2, Type, Order2, Key3, Order3, 
  Header, OrderCustom, MatchCase, Orientation, SortMethod, DataOption1, DataOption2, DataOption3)
>
>I want to sort a column in a Excel worksheet.
>how to code the sorting statement ?
>I record it in excel macro, but the syntax not valid in VFP9.
>
>Please advise.
>
>Thanks.
>
>
>lnLastRow = oExcel.activesheet.UsedRange.Rows.Count
>oExcel.activesheet.Range("A1:G"+TRIM(PADR(lnLastRow,11))).select
>Selection.Sort Key1:=Range("A1"), Order1:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform