RGB font color of a disable ActiveX control

Skysurfer

Board Regular
Joined
Apr 19, 2004
Messages
202
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
Hi,

Does anyone know the RGB font code of a disabled ActiveX control?

Lawrence
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
AFAIK, Text in a disabled control is greyed out/ghosted by default and there is nothing you can do to change that. However, you can change the font colour if the control is locked instead. Unless you want non-standard colours, using the vb colour constants (e.g. vbRed) is much simpler than using RGB.
 
Upvote 0
Hey, thanks for the response. I don't want to change the disabled control's color. I want to match it on surrounding text. Just need the RGB code to do that.

Lawrence
 
Upvote 0
I have no clue what you're asking for. First it's the "font code of a disabled ActiveX control". Font code could mean anything having to do with a font.
Now it's "match it" (whatever "it" is) to surrounding text. Text in adjacent cells? In adjacent controls on a userform? In the same textbox? Something else?
Maybe if you search on how to code for RGB and apply the property to something you'll be able to fill in all of the blanks faster.
 
Upvote 0
Your colors are determined by the theme color you pick for your Workbook. See Page Layout->Colors and/or Themes
There are constants are set by the theme colors.
Color Indexes for VBA

just a guess - it could be the color defined by
vbGrayText
 
Upvote 0
Good Peoples,

I have been unable to find an exact RGB match, but the closest my eyeballs can come is 166, 166, 166.

@Micron ... The purpose is to grey out descriptive text surround the ActiveX option button. If that option button is deselected, the surrounding text--which is a list of chart names--is no longer available.

Lawrence
 
Upvote 0
Good Peoples,

I have been unable to find an exact RGB match, but the closest my eyeballs can come is 166, 166, 166.

@Micron ... The purpose is to grey out descriptive text surround the ActiveX option button. If that option button is deselected, the surrounding text--which is a list of chart names--is no longer available.

Lawrence
Using a color-picker App it shows the disabled option button text is RGB(160,160,160). So, you are pretty close with 166.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,494
Messages
6,125,139
Members
449,207
Latest member
VictorSiwiide

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