Hello Everyone,
Here's my macro:
Sub DoSort()
'
' DoSort Macro
' Macro recorded 10/21/2005 by 857441661
'
' Keyboard Shortcut: Ctrl+f
'
Sheets("Results").Select
Columns("G:G").Select
Selection.Sort Key1:=Range("G2"), Order1:=xlDescending, Key2:=Range("A2") _
, Order2:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase:= _
False, Orientation:=xlTopToBottom
Selection.AutoFilter Field:=1, Criteria1:="<>FALSE", Operator:=xlAnd
End Sub
It's telling me the sort referance is not valid. Make sure that it's with the data that you want to sort, and the first Sort By box isn't the same or blank.
I just used the macro recorder, so I'm lost as to why it's not working correctly.
TIA
Here's my macro:
Sub DoSort()
'
' DoSort Macro
' Macro recorded 10/21/2005 by 857441661
'
' Keyboard Shortcut: Ctrl+f
'
Sheets("Results").Select
Columns("G:G").Select
Selection.Sort Key1:=Range("G2"), Order1:=xlDescending, Key2:=Range("A2") _
, Order2:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase:= _
False, Orientation:=xlTopToBottom
Selection.AutoFilter Field:=1, Criteria1:="<>FALSE", Operator:=xlAnd
End Sub
It's telling me the sort referance is not valid. Make sure that it's with the data that you want to sort, and the first Sort By box isn't the same or blank.
I just used the macro recorder, so I'm lost as to why it's not working correctly.
TIA