Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to sort a col. in Excel
Message
From
08/07/2011 02:24:04
 
 
To
07/07/2011 22:54:20
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:
01517660
Views:
51
>Hi,
>I try this, the code is no syntax error, but the result no sorting by the col. A1.
>
>
>Why ?
>
>Please advise.
>
>Thanks.
#define xlAscending   1
#define xlGuess       0
#define xlTopToBottom 1

lnLastRow = oExcel.activesheet.UsedRange.Rows.Count
oExcel.activesheet.Range("A1:G"+TRIM(PADR(lnLastRow,11))).select
WITH oExcel.Selection
     .Sort(oExcel.Range("A1"), xlAscending,,,,,, xlGuess, 1, .f., xlTopToBottom)
ENDWITH
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform