Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 10
Default Sorting

Dear all,

I created a procedure where I defined a matrix "V" with row 100 and column 6
Now I want to sort it's row according to the value of it's last column. To get this, I wanted to know how Excel does this, through recording a macro. I got following procedu

Range("A1:C16").Select
Selection.Sort Key1:=Range("C1"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal


Now I used same syntax for my problem :

Range(V).Select
Selection.Sort Key1:=Range(V(1, 6)), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal

However I am getting error while executing.

Can anyone give me any idea on how exactly I should do this?

Thanks and regards,
Arun
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting appeng Excel Discussion (Misc queries) 4 April 29th 07 07:41 PM
Sorting Kim New Users to Excel 2 December 11th 06 04:03 AM
Sorting: Sorting by the First Character dzuy Excel Discussion (Misc queries) 2 June 22nd 06 08:27 PM
Sorting Tom Excel Worksheet Functions 3 January 27th 06 11:49 PM
Sorting Caden Excel Discussion (Misc queries) 2 September 14th 05 08:45 PM


All times are GMT +1. The time now is 06:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"