Hi Colin,
Again you made it easy. Thanks for your help.
Question:
I never was able to get the code you provided to sort my sheet the way I need it too.
Here is the code and I attached a workbook to show what I'm looking for. I really don't understand this one. Maybe you can explain and tell me what I need to do.
Code:
Sub SortDaysProvider()
Dim DayRange As Long
Dim TopRow As Long
Dim sRange As Range
Dim fRange As Range
Application.ScreenUpdating = False
For DayRange = 1 To 365
TopRow = (DayRange * 17) + 9
With ActiveWorkbook.Worksheets("Input Calendar (2012)")
Set sRange = .Range("B" & TopRow & ":" & "O" & TopRow + 5)
Set fRange = .Range("B" & TopRow & ":" & "B" & TopRow + 5)
With .Sort
.SortFields.Add _
Key:=fRange, _
SortOn:=xlSortOnValues, _
Order:=xlAscending, _
DataOption:=xlSortNormal
.SetRange sRange
.Header = xlGuess
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
Application.Calculate
.Apply
.SortFields.Clear
End With
End With
Next DayRange
Application.ScreenUpdating = True
End Sub