switters_aka
Board Regular
- Joined
- Oct 26, 2010
- Messages
- 118
I am trying to loop through userform textbox controls to populate an array and want to use the loop variable in the code e.g.
This doesn't work though and I was wondering if anyone else had come across this issue before and found a solution. Thanks in advance for your help.
Code:
for i=1 to 6
myarray(i,1)=userform2.mytextbox(i).value
myarray(i,2)=userform2.histextbox(i).value
myarray(i,3)=userform2.hertextbox(i).value
next i
This doesn't work though and I was wondering if anyone else had come across this issue before and found a solution. Thanks in advance for your help.