Looping Through a Task

MGumbrell

Registered User.
Local time
Today, 09:11
Joined
Apr 22, 2005
Messages
129
On UserForm1

I have 15 TextBox's (TextBox1 to TextBox15)

I have an OptionButton1

What I would like to happen
When OtionButton1 is checked, then TextBox's 1 to 15.Enabled = False

I just can't work out how to loop through this event. I suppose what I am really after is learning the process for looping through an event such as this.

Thanks, Matt
 
dim bytTextBoxCounter as byte

for bytTextBoxCounter=1 to 15
me("TextBox" & bytTextBoxCounter).enabled = false
next bytTextBoxCounter
 
Thanks for that.

Can you tell me what the "me" syntax means and how it is used.

Regards, Matt
 
Hi, Matt,

otherwise use
Code:
Controls("TextBox" & bytTextBoxCounter).Enabled = False
Ciao,
Holger
 

Users who are viewing this thread

Back
Top Bottom