View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Steve Kite Steve Kite is offline
external usenet poster
 
Posts: 1
Default Dynamically finding the last empty row

You can reset Excel's cell counting so that the SpecialCells method
gives you the correct last cell.
I use:
x = ActiveSheet.UsedRange.Rows.Count
y = ActiveSheet.UsedRange.Columns.Count
ActiveSheet.Cells.SpecialCells(xlLastCell).Select
Steve

"Tom Ogilvy" wrote in message ...
set rng = rng.SpecialCells(xlLast)

although this can overstate what you might think is the last empty row