Forms check box question – please help

Blue Rain

New Member
Joined
Aug 31, 2015
Messages
9
Apart from the check box background and font “fore” colour changes is it possible to change the inside colour of the check box itself? I refer to the inside of the box which is normally white and that has the black check mark symbol inside. Also can the check mark symbol be changed to another symbol or removed altogether?</SPAN>

That is when the check box is in the disabled state instead of having a white colour it has, lets say a patterned green colour, and when the check box is in the enabled state the patterned green turns to green without the check mark. Sort of to give an ON – OFF effect.</SPAN>

Can anyone provide a macro to achieve this?</SPAN>

Thank you.</SPAN>

PS I know very little on VBA.</SPAN>
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
If you are using ActiveX checkboxes, you could set the value to Mixed giving it a patterned background inside the checkbox.

Code:
Sub changecolor()
ActiveSheet.Shapes.Range(Array("Check Box 2")).Select
With Selection
    .Value = xlMixed
End With
End Sub

Since the above code is working with an array, you could add multiple checkboxes within the array separated by a comma.

i.e. Array("Check Box 2", "Check Box 3")
 
Upvote 0
If you are using ActiveX checkboxes, you could set the value to Mixed giving it a patterned background inside the checkbox.

Code:
Sub changecolor()
ActiveSheet.Shapes.Range(Array("Check Box 2")).Select
With Selection
    .Value = xlMixed
End With
End Sub

Since the above code is working with an array, you could add multiple checkboxes within the array separated by a comma.

i.e. Array("Check Box 2", "Check Box 3")


Many thanks for your reply. It is an option which achieves part of what I am after and which did not cross my mind.</SPAN>

To me it’s strange why the check box checking region can not be addressed to change it’s colour. </SPAN>
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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