Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to sort a column in a Excel file ?
Message
De
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:
01412152
Vues:
50
Hi,
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform