ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Looping (https://www.excelbanter.com/excel-programming/280981-re-looping.html)

Stuart[_9_]

Looping
 
do until activecell=""
some lines of code here
activecell.offset(1,0).select
loop

or MUCH faster with a selected range

for each rng in selection
some lines of code here
if rng ="" then
some lines of code here
end if
next rng


Darrel wrote in message
...
I would like to execute my macro until it encounters an empty cell. How

can I check for an empty cell in a macro?




All times are GMT +1. The time now is 12:27 PM.

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