I know the first cell I want for my range (A2).
The last column will be F.
The longest Column is A so I'm finding the last cell address in column A.
Can I separate the row number from the column letter (I don't need A579, I just need 579) and use a cell reference combined with a variable name in defining a range?
Sub LastCellInColumn()
Dim LastCell As String
Range("A65536"
.End(xlUp).Select
LastCell = Range("A65536"
.End(xlUp).Address
'want something like: MyRange = A2:F(LastCellRow#)
End Sub
Thank you -
The last column will be F.
The longest Column is A so I'm finding the last cell address in column A.
Can I separate the row number from the column letter (I don't need A579, I just need 579) and use a cell reference combined with a variable name in defining a range?
Sub LastCellInColumn()
Dim LastCell As String
Range("A65536"
LastCell = Range("A65536"
'want something like: MyRange = A2:F(LastCellRow#)
End Sub
Thank you -