P
pierreeng
Hi dude, can someone tell me what's wrong with the line with *.
Sub Sort()
x = Worksheets.Count
For m = 3 To x
*Worksheets(m).Range("A6:O200").Select
Selection.sort Key1:=Range("O6"), Order1:=xlAscending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Next m
End Sub
I tried to run but it showed "Select method of range class failed".Can
someone specify where the errors are?
My idea is to sort the rows according to the data in column O, and i
wanna do this fr my 3rd sheet to the last sheet.
Thks n haf a nice day ahead.
Sub Sort()
x = Worksheets.Count
For m = 3 To x
*Worksheets(m).Range("A6:O200").Select
Selection.sort Key1:=Range("O6"), Order1:=xlAscending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Next m
End Sub
I tried to run but it showed "Select method of range class failed".Can
someone specify where the errors are?
My idea is to sort the rows according to the data in column O, and i
wanna do this fr my 3rd sheet to the last sheet.
Thks n haf a nice day ahead.
