954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Control Arrays

This is just a simple question. There are four command buttons in a control array. I want to write code for one of them that changes the same property in the same way for all of them. When I tried doing this with just a specific button (I entered the subscript) it gave me suggestions as it usually does, but when I didn't specify a subscript it only had four suggestions, none of which were properties that could be changed. How would you change the property of all of them at once?

sk8ndestroy14
Posting Virtuoso
1,852 posts since Mar 2007
Reputation Points: 437
Solved Threads: 1
 

Sorry this is not the answer you are looking for, but I am pretty sure you will need to put four lines of code, one for each button to change them.

Or use a loop ....

DenisOxon
Posting Whiz
355 posts since Jan 2007
Reputation Points: 22
Solved Threads: 19
 

Is there any way to use a For Next combination? Possibly with a variable as the index number? I'll try it. If not, then tell me how you would use a loop.

sk8ndestroy14
Posting Virtuoso
1,852 posts since Mar 2007
Reputation Points: 437
Solved Threads: 1
 

Yeah sorry. I just realized the For Next is a loop. Lol. But yeah it works. Thanks for your help.

sk8ndestroy14
Posting Virtuoso
1,852 posts since Mar 2007
Reputation Points: 437
Solved Threads: 1
 
Yeah sorry. I just realized the For Next is a loop. Lol. But yeah it works. Thanks for your help.

Exactly what I had in mind - glad to help and to hear it has worked.

DenisOxon
Posting Whiz
355 posts since Jan 2007
Reputation Points: 22
Solved Threads: 19
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You