Celia -- Last filled row
Posted by Ben on August 09, 2000 7:10 PM
OK, so here's a clunky macro that accomplishes my objective:
Cells(160, 2).Select
Do While (ActiveCell = Empty And ActiveCell.Offset(0, 1) = Empty) = True
ActiveCell.Offset(-1, 0).Select
Loop
Set BottomCell = ActiveCell
And then I fill down to BottomCell.row with a column of data. It works fine for a spreadsheet of only 160 rows and two columns. Is there a more universal macro? By the way, xlLastCell doesn't work for me. It selects row 167 and column K (I have formatted cells to row 160, column J, and data usually only to about row 100.)