How do I determine the last cell in a Column
Try...
Range("IV1").End(xlToLeft).Column
I prefer to use...
With ActiveSheet
lastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
lastCol = .Cells(1, .Columns.Count).End(xlToLeft).Column
End With
"Ayo" wrote:
I know how to get the last cell in a column:
range("A65536").End(xlUp).address for the row number
range("A65536").End(xlUp).row for the row number
but I am not sure how to translate this to doing the same for the row.
Any help with be appreciated. Thanks.
|