Control Arrays?

jaynorman46

New Member
Joined
Apr 5, 2011
Messages
23
Im creating a Form In the VBA editoror and it wont let me create a control array of multiple option buttons within a frame. Can you no longer Create control arrays?

I appreciate your help!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
As far as I know you never could in VBA.

Which I think surprised a lot of people who were used to VB6 and were now trying to work with VBA.

And guess what they apparently dropped them in VB.NET.:)
 
Upvote 0
Thanks for your response! Do you have any suggestions about coding with multiple option buttons? Im trying to avoid hard coding and multiple if then statements. Im not looking for anything specific...anything will help...
 
Upvote 0
I suppose it depends on what you want to do with them.

One way might be to create a class which will allow you to handle some of the events associated with the buttons centrally.

I think the only thing I've done with a class and option buttons was some trivial thing that changed their backgrounds when one of them was clicked.

ie when an option button was clicked it's background went red and the rest changed to the form background colour
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,917
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top