FROGGER24
Well-known Member
- Joined
- May 22, 2004
- Messages
- 704
- Office Version
- 2013
- 2010
- Platform
- Windows
I am getting "sort reference is not valid. The actual rows to sort is in row 3 to last used row
Appreciate help in troubleshooting
VBA Code:
With Sheets("Hours")
UsdRws = .Range("A" & Rows.Count).End(xlUp).Row
With .Range("A2", .Cells(2, Columns.Count).End(xlToLeft))
.Resize(UsdRws).Sort .Columns(6), xlAscending, xlAscending, Header:=xlYes
.Resize(UsdRws).Sort .Columns(6), xlAscending, .Columns(1), , xlAscending, Header:=xlYes
End With
End With
Appreciate help in troubleshooting