Link to home
Start Free TrialLog in
Avatar of Matty_mca
Matty_mca

asked on

Set multiple cmd boxes to enabled = true

Hi Experts,
Fairly simple one, but one that is bugging me...

I have 100 cmd boxes cmd1, cmd2, cmd3..... cmd100 upon clicking the rest button i want all of the cmdbuttons to set enabled = true. i know i could go through each one putting cmdX.enabled = true but it seems a bit messy. is there a way to do it in some kind of loop? e.g.:
for x = 1 to 100
         cmd & x.enabled = true
next

Thanks guys
Regards Matt
ASKER CERTIFIED SOLUTION
Avatar of Antagony1960
Antagony1960

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Matty_mca
Matty_mca

ASKER

Thanks Antagony1960.
Tag property also worked a treat
cheers
Matt