Referencing check boxes from VBA to excel

VBAmalta89

Board Regular
Joined
Mar 25, 2011
Messages
116
I have a user form with a number of check boxes. Now when the user ticks the box in the form it returns a TRUE or FALSE value in the excel worksheet.

Is there a way where I can make it return whats written in the check box rather than simply true or false?

Thanks
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Tuelor

Board Regular
Joined
Mar 19, 2011
Messages
101
If its links a true or false to a cell, couldn't you just add an IF statement next to it to toggle between the wording?

But to answer your first question, I don't think you can with a form control. You can do it with an ActiveX control, within the comboBox_change event.

D
 

VBAmalta89

Board Regular
Joined
Mar 25, 2011
Messages
116
Thats what im going to do now but i was hoping that there was a way to do it from VBA instead. Im new to this VBA business so im still getting used to it.

Thanks!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,486
Messages
5,831,968
Members
430,099
Latest member
rdhoy

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
Top