Sort column ascending on many worksheets
Hi
This macro will sort all sheets based on column B, assuming you have
headings in row 1.
Sub SortSheets()
Application.ScreenUpdating = False
For Each sh In ThisWorkbook.Sheets
Columns("A:H").Sort Key1:=Range("B1"), Order1:=xlAscending,
Header:=xlYes, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Next
Application.ScreenUpdating = True
End Sub
Regards,
Per
"tkincaid" skrev i meddelelsen
...
i have over 100 worksheets and it will grow, they all have the same
columns.
I want to make a macro that will sort each worksheet via column B with
dates.
A B C
all 12/8/08 all-t-08-e-001
The columns continue until H and go to line 98.
Thank You
|