Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to sort a column in a Excel file ?
Message
 
 
À
14/07/2009 04:10:15
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01411352
Message ID:
01412162
Vues:
52
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform