ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   macro to loop till end of page (https://www.excelbanter.com/excel-programming/316343-macro-loop-till-end-page.html)

Nadiya

macro to loop till end of page
 
Hello ~ i'm trying to creat a macro that searches on a word, then inserts a
pagebreak. But i don't know how to make it loop till the end of the
worksheet. I won't know the last row - being this worksheet with continually
grow larger. Thanks.

Tom Ogilvy

macro to loop till end of page
 
Look at the help example for the FindNext method.

--
Regards,
Tom Ogilvy


"Nadiya" wrote in message
...
Hello ~ i'm trying to creat a macro that searches on a word, then inserts

a
pagebreak. But i don't know how to make it loop till the end of the
worksheet. I won't know the last row - being this worksheet with

continually
grow larger. Thanks.





All times are GMT +1. The time now is 11:47 AM.

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