ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Variable (https://www.excelbanter.com/excel-programming/293417-variable.html)

NM[_2_]

Variable
 
How do you code for a variable.
I want some code that will return a messagebox
showing the count in the box. Let's use 1 through 10 for
this example.

Thanks


Frank Kabel

Variable
 
Hi
try
sub foo()
dim i
for i = 1 to 10
msgbox "This is number: " & i
next
end sub

--
Regards
Frank Kabel
Frankfurt, Germany

NM wrote:
How do you code for a variable.
I want some code that will return a messagebox
showing the count in the box. Let's use 1 through 10 for
this example.

Thanks



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

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