epslugger
New Member
- Joined
- Nov 17, 2012
- Messages
- 3
Hi,
I'm coding in excel 2010 and I was wondering if there is a way to create a variable that is local to a for loop. The equivalent code in c++ would be:
for(int i=0; i<10; i++).
I have tried the following and I get the error "Compile Error Expected: ="
For i as Integer = 0 To 10 Step 1
Next i
Thanks
I'm coding in excel 2010 and I was wondering if there is a way to create a variable that is local to a for loop. The equivalent code in c++ would be:
for(int i=0; i<10; i++).
I have tried the following and I get the error "Compile Error Expected: ="
For i as Integer = 0 To 10 Step 1
Next i
Thanks