P Phil Hunt Jan 30, 2004 #1 What is the VBA command to find the last cell range on a worksheet? Thanks
C Crash Jan 30, 2004 #2 Sub Last() MsgBox "Last cell is " & _ ActiveSheet.UsedRange.SpecialCells(xlLastCell).Address End Sub Jon
Sub Last() MsgBox "Last cell is " & _ ActiveSheet.UsedRange.SpecialCells(xlLastCell).Address End Sub Jon
P Phil Hunt Jan 30, 2004 #3 That was quick. I may have more question later. This is my first time programming Excel
T Tom Ogilvy Jan 30, 2004 #4 set rng = Cells.SpecialCells(xlCellTypeLastCell) finds the lower right corner of the usedrange. It may not be what you expect however.
set rng = Cells.SpecialCells(xlCellTypeLastCell) finds the lower right corner of the usedrange. It may not be what you expect however.