I am trying to sort some rows in a worksheet By Column I and then by Column L. There could be any number of rows when the person runs the macro. So that is never constant. I have the following code so far and I keep getting the error - "object doesn't support method."
- The A6 is the line that the data will always start on
Option Explicit
Option Base 1
Sub SortDb()
Worksheets("DB".Range("A6".Sort _
Key1:=Worksheets("DB".Column("I", _
Key2:=Worksheets("DB".Column("L"
End Sub
What am I doing wrong?
- The A6 is the line that the data will always start on
Option Explicit
Option Base 1
Sub SortDb()
Worksheets("DB".Range("A6".Sort _
Key1:=Worksheets("DB".Column("I", _
Key2:=Worksheets("DB".Column("L"
End Sub
What am I doing wrong?