C
cyberdude
Hi,
I have added a number of textboxes in a userform. They range from
textbox1 to textbox15. The coding will become cumbersome if I code
the 15 textboxes separately. For example, to initialize the 15
textboxes, I need to write
textbox1=""
textbox2=""
....
textbox15=""
May I ask if there is a way to treat the textboxes as an array of
elements like
Dim textbox(1 to 15)
To initialize, I only need to write
for i=1 to 15
textbox(i)=""
next i
Thanks
Mike
I have added a number of textboxes in a userform. They range from
textbox1 to textbox15. The coding will become cumbersome if I code
the 15 textboxes separately. For example, to initialize the 15
textboxes, I need to write
textbox1=""
textbox2=""
....
textbox15=""
May I ask if there is a way to treat the textboxes as an array of
elements like
Dim textbox(1 to 15)
To initialize, I only need to write
for i=1 to 15
textbox(i)=""
next i
Thanks
Mike