Thread: Sorting - VBA
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
kirkm[_6_] kirkm[_6_] is offline
external usenet poster
 
Posts: 156
Default Sorting - VBA

On 5 Mar 2007 21:26:11 -0800, "Greg Glynn"
wrote:

You can add the next column as a secondary search

Sub SortRange1()
Worksheets("Sheet1").Range("A1:C20").Sort _
Key1:=Worksheets("Sheet1").Range("A1"), _
Key2:=Worksheets("Sheet1").Range("B1")
End Sub

You'll need to put your numbers in the second column.



Thanks Greg, it worked FANTASTICALLY!

Cheers - Kirk