Thread: Variable
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default 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