ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I use a for/next loop to preform the same actions to every. (https://www.excelbanter.com/excel-programming/318956-how-do-i-use-next-loop-preform-same-actions-every.html)

Wenoka

How do I use a for/next loop to preform the same actions to every.
 


Don Guillett[_4_]

How do I use a for/next loop to preform the same actions to every.
 
for each every in selection
do this
next every

--
Don Guillett
SalesAid Software

"Wenoka" wrote in message
...




Bob Phillips[_6_]

How do I use a for/next loop to preform the same actions to every.
 
LOL!

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Don Guillett" wrote in message
...
for each every in selection
do this
next every

--
Don Guillett
SalesAid Software

"Wenoka" wrote in message
...






Ken Macksey

How do I use a for/next loop to preform the same actions to every.
 
Hi

That is what a for next loop does by default unless you change something
with conditions within the loop. What are you trying to do?

For i = 1 to 5
msgbox("Hi")
Next i

will do the same thing 5 times in a row.

Ken




All times are GMT +1. The time now is 05:16 AM.

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