I am trying to use this script:
With Sheets(2).Columns("A:B").Select
Selection.Sort Key1:=Range("A1"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
End With
I get this error:
Run-time error '1004': Unable to get the Select property of the Range class
If I click debug it points to:
With Sheets(2).Columns("A:B").Select
Any ideas?
Thanks,
djanu