mscallisto
Technical User
Code:
Dim usedrowsCol_T as integer
usedrowsCol_T = Cells(Cells.Rows.Count, "T").End(xlUp).Row
Set Company = Worksheets("calls").Range("S2:T25")
In the above code I want to change the hardcoded T25 to say T and the last row used in col T
Set Company = Worksheets("calls").Range(" 'S2:T' & string(usedrowsCol_T)")
My syntax needs help