Hello, I'm having trouble sorting the data on multiple worksheets in a work book. I want to cycle through each WS in my array and sort the data in column A:A.
The error say: "Unable to get the sort property of the range class".
Thanks!
Code:
Dim WS As Variant
For Each WS In Array("FY07 Report", "FY08 Report", "FY09 Report")
Worksheets("" & WS & "").Range("A:A").Sort.SortFields.Add order1:=xlAscending, Header:=xlYes, Orientation:=xlTopToBottom, SortMethod:=xlPinYin
Next
The error say: "Unable to get the sort property of the range class".
Thanks!