How do i find the last cell range in a sheet

  • Thread starter Thread starter Phil Hunt
  • Start date Start date
Sub Last()

MsgBox "Last cell is " & _
ActiveSheet.UsedRange.SpecialCells(xlLastCell).Address
End Sub

Jon
 
That was quick. I may have more question later. This is my first time
programming Excel
 
set rng = Cells.SpecialCells(xlCellTypeLastCell)

finds the lower right corner of the usedrange. It may not be what you
expect however.
 
Back
Top