Hi
My problem is the following.
I have a (100rows x 10columns) range to which some numerical output is written. I need to access each row in this range and sort it descending. Any suggestions Any help is much appreciated. Thanks.
Thomas
Hi
My problem is the following.
I have a (100rows x 10columns) range to which some numerical output is written. I need to access each row in this range and sort it descending. Any suggestions Any help is much appreciated. Thanks.
Thomas
Hi Joe
Yes, you are right, that is precisely what I need to do.
Hi again
I have written a solution that works. If any of you have comments, they are also much appreciated - I have just started with VBA.
In a "Do While Loop" statement, this is the code:
***
Range(Cells(Counter + 1, 6), Cells(Counter + 1, 6).End(xlToRight)).Sort Key1:=Range(Cells(Counter + 1, 6), Cells(Counter + 1, 6)), Order1:=xlDescending, OrderCustom:=1, MatchCase:=False, Orientation:=xlLeftToRight
***
The "Counter" variable keeps track of the rows.
References are to cells and not a named range, which would have been kind of cool, I think.
Hi Andy
Thanks. Very good comments - just what I was thinking about. Right now I am relying on the Help Function and the Internet to learn about VBA coding. Any ideas for literature references I am a student of finance, so my needs are mostly related to management of data files and calculations.
Thanks! Best, Thomas