well there are a couple of ways to do this..one would be to test the A# cell for is empty if you are only using the rows... and may delete some info creating "holes" another way that I usually use is the special cells method like this
lCell = worksheets("Sheet1").cells.specialcells(xlcelltypelastcell).row this will give you the row number of the last row used.