ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Finding Last Row (https://www.excelbanter.com/excel-programming/304846-finding-last-row.html)

Clint[_4_]

Finding Last Row
 
In a worksheet that someone can enter as many rows of
data as they want, is there an easy way of finding the
last row that data has been entered to for looping
purposes? thanks!

Tom Ogilvy

Finding Last Row
 
Dim rng as Range, cell as Range
set rng = Range(cells(1,1),Cells(rows.count,1).End(xlup))
for each cell in rng

Next

--
Regards,
Tom Ogilvy


"Clint" wrote in message
...
In a worksheet that someone can enter as many rows of
data as they want, is there an easy way of finding the
last row that data has been entered to for looping
purposes? thanks!





All times are GMT +1. The time now is 07:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com