ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Checkbox question (https://www.excelbanter.com/excel-programming/433779-checkbox-question.html)

TotallyConfused

Checkbox question
 
I would like to know if the color of the checkbox can be changed from white
to something else in code? I have a page many checkboxes and would like to
alternate the color of checks so it would be easier on the eye. I tried the
"backcolor" but client does not like it. Was wondering if there is anything
else? Thank you in advance for any help you can provide. Thank you.

joel

Checkbox question
 
There is a forecolor ( the text color) and the backcolor (the area not in the
box area). You can see the options by creating a userform and placing a
checkbox on the userform. The user VBA Vmenu and select View - Properties.
then select the checkbox and yo will see all the options. Yo can manually
change the forecolor and backcolor throughthe properties window. there is a
drop down menu inside the property window for both of these properties.



"TotallyConfused" wrote:

I would like to know if the color of the checkbox can be changed from white
to something else in code? I have a page many checkboxes and would like to
alternate the color of checks so it would be easier on the eye. I tried the
"backcolor" but client does not like it. Was wondering if there is anything
else? Thank you in advance for any help you can provide. Thank you.


TotallyConfused

Checkbox question
 
I should have been more specific. The checkboxes I am referring to are the
ones used in Excel Userform and there is no "forecolor" for these. Is there
any other options? Thank you.

"Joel" wrote:

There is a forecolor ( the text color) and the backcolor (the area not in the
box area). You can see the options by creating a userform and placing a
checkbox on the userform. The user VBA Vmenu and select View - Properties.
then select the checkbox and yo will see all the options. Yo can manually
change the forecolor and backcolor throughthe properties window. there is a
drop down menu inside the property window for both of these properties.



"TotallyConfused" wrote:

I would like to know if the color of the checkbox can be changed from white
to something else in code? I have a page many checkboxes and would like to
alternate the color of checks so it would be easier on the eye. I tried the
"backcolor" but client does not like it. Was wondering if there is anything
else? Thank you in advance for any help you can provide. Thank you.


TotallyConfused

Checkbox question
 
I am sorry, there is a "forecolor" in Userform properties for checkboxes but
it only affects the text. Any other option? thank you.

"TotallyConfused" wrote:

I should have been more specific. The checkboxes I am referring to are the
ones used in Excel Userform and there is no "forecolor" for these. Is there
any other options? Thank you.

"Joel" wrote:

There is a forecolor ( the text color) and the backcolor (the area not in the
box area). You can see the options by creating a userform and placing a
checkbox on the userform. The user VBA Vmenu and select View - Properties.
then select the checkbox and yo will see all the options. Yo can manually
change the forecolor and backcolor throughthe properties window. there is a
drop down menu inside the property window for both of these properties.



"TotallyConfused" wrote:

I would like to know if the color of the checkbox can be changed from white
to something else in code? I have a page many checkboxes and would like to
alternate the color of checks so it would be easier on the eye. I tried the
"backcolor" but client does not like it. Was wondering if there is anything
else? Thank you in advance for any help you can provide. Thank you.


Dave Peterson

Checkbox question
 
Look again for the BackColor property.

TotallyConfused wrote:

I am sorry, there is a "forecolor" in Userform properties for checkboxes but
it only affects the text. Any other option? thank you.

"TotallyConfused" wrote:

I should have been more specific. The checkboxes I am referring to are the
ones used in Excel Userform and there is no "forecolor" for these. Is there
any other options? Thank you.

"Joel" wrote:

There is a forecolor ( the text color) and the backcolor (the area not in the
box area). You can see the options by creating a userform and placing a
checkbox on the userform. The user VBA Vmenu and select View - Properties.
then select the checkbox and yo will see all the options. Yo can manually
change the forecolor and backcolor throughthe properties window. there is a
drop down menu inside the property window for both of these properties.



"TotallyConfused" wrote:

I would like to know if the color of the checkbox can be changed from white
to something else in code? I have a page many checkboxes and would like to
alternate the color of checks so it would be easier on the eye. I tried the
"backcolor" but client does not like it. Was wondering if there is anything
else? Thank you in advance for any help you can provide. Thank you.


--

Dave Peterson

JLGWhiz[_2_]

Checkbox question
 
Did you click on Palette in the Backcolor option? It offers the 56 color
varieties. The default for the Backcolor is System which is a limited
number of colors and tones.



"TotallyConfused" wrote in
message ...
I would like to know if the color of the checkbox can be changed from white
to something else in code? I have a page many checkboxes and would like
to
alternate the color of checks so it would be easier on the eye. I tried
the
"backcolor" but client does not like it. Was wondering if there is
anything
else? Thank you in advance for any help you can provide. Thank you.




Patrick Molloy[_2_]

Checkbox question
 
Private Sub TextBox1_Change()
If IsNumeric(TextBox1.text) Then
TextBox1.BackColor = -2147483643
ElseIf TextBox1.text = "" Then

Else
TextBox1.BackColor = vbRed

End If

End Sub

"TotallyConfused" wrote:

I would like to know if the color of the checkbox can be changed from white
to something else in code? I have a page many checkboxes and would like to
alternate the color of checks so it would be easier on the eye. I tried the
"backcolor" but client does not like it. Was wondering if there is anything
else? Thank you in advance for any help you can provide. Thank you.



All times are GMT +1. The time now is 08:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com