Answers for "excel macro last row in a column"

VBA
0

excel last used row

Dim rLastCell As Range

Set rLastCell = ws.Cells.Find(What:="*", After:=ws.Cells(1, 1), _
    LookIn:=xlFormulas, LookAt:= xlPart, SearchOrder:=xlByColumns, _
    SearchDirection:=xlPrevious, MatchCase:=False)

MsgBox ("The last used column is: " & rLastCell.Column)
MsgBox ("The last used row is: " & rLastCell.Row)
Posted by: Guest on January-31-2021

Code answers related to "excel macro last row in a column"

Code answers related to "VBA"

Browse Popular Code Answers by Language