Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to sort in the worksheet?
Hello,
I write a asp.net web page with Excel.Application for creating a Excel File. I want that worksheet be sorted by some column. I use xlSheet.Range(xx).Sort(xlSheet.Range(xxx)). But it doesn't sort by my assigning. How to sort the worksheet? Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to sort in the worksheet?
You have a syntax error
xlSheet.Range(xx).Sort xlSheet.Range(xxx) If you include the arugment in parentheses and you are not returning a value, you cause the argument to be evaluated, so in this case, the argument becomes the value in the range rather than a reference to the range (which is what is required). -- Regards, Tom Ogilvy "YaYa" wrote in message ... Hello, I write a asp.net web page with Excel.Application for creating a Excel File. I want that worksheet be sorted by some column. I use xlSheet.Range(xx).Sort(xlSheet.Range(xxx)). But it doesn't sort by my assigning. How to sort the worksheet? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can I sort when the worksheet is locked? | Excel Worksheet Functions | |||
Sort Worksheet Names? | Excel Discussion (Misc queries) | |||
XP EXCEL WORKSHEET WILL NOT SORT. HOW TO FIX | Excel Worksheet Functions | |||
How do I sort a proctected worksheet | New Users to Excel | |||
New rows at the end of a worksheet don't sort with the worksheet | Excel Worksheet Functions |