How to create checkbox array

yossi321

New Member
Joined
Aug 6, 2023
Messages
2
Office Version
  1. 2007
Platform
  1. Windows
I have some activex checkbox
checkbox1, checkbox2 and so on
How can I creat array for that in vba , like in vb6?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
> like in vb6?

With clsBpca, you can experience VB6 event handling programming in VBA.


If you look at the sample code, you can see that the event coding of the control array is realized in the UserForm module, just like in VB6.

The mechanics of the class module (clsBpca) are explained above that link.

I hope this tool helps you.
 
Upvote 0
> like in vb6?

With clsBpca, you can experience VB6 event handling programming in VBA.


If you look at the sample code, you can see that the event coding of the control array is realized in the UserForm module, just like in VB6.

The mechanics of the class module (clsBpca) are explained above that link.

I hope this tool helps you.
thank you
I don't want to add controls but I want to set array variable to the existing controls
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: How to set checkbox array
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
> I don't want to add controls

It's not about dynamically creating new controls and adding them.

By registering existing controls in the clsBPCA class module (that is the Add method), clsBPCA provides you with control array functions (1: control reference by subscript and 2: VB6-like event coding).
 
Upvote 0
@AddinBox_Tsunoda in future please post the solution to this site & do not send people to your site. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,893
Members
449,194
Latest member
JayEggleton

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