Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to sort a column in a Excel file ?
Message
 
 
To
14/07/2009 04:10:15
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:
01411352
Message ID:
01412162
Views:
53
Sure, SortField Object in the Excel 2007 Developer Reference. You can also get to it from within Excel.

>I don't understand the following coding,
>is there any document (msdn Language Reference ) explain the usage of Sort.SortFields.Add function?
>
>
>WITH oSheet.Sort
>	.SortFields.Clear()
>	.SortFields.Add(oSheet.Range(oSheet.Cells(1,lnCol2SortOn),oSheet.Cells(lnLastRow,lnCol2SortOn)), ;
>			xlSortOnValues, xlAscending, xlNo, xlSortNormal)
>	.SetRange(oSheet.Range("A1", oSheet.Cells.SpecialCells(xlLastCell)))
>	.Header = xlYes
>	.Apply()
>ENDWITH	
>
>
>Thanks,
>Derek
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform