transparent VBA controls

gutknebr

New Member
Joined
May 16, 2002
Messages
8
I can make a checkbox transparent by changing the backstyle property to transparent, but if the cell background behind the control is a color, the checkbox background changes to white when the checkbox becomes active in the spreadsheet. How do I avoid that?
 

Some videos you may like

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
L

Legacy 98055

Guest
Change the backcolor of your control to match the cell color.
I have had problems with making controls transparent too. There are some workarounds if the above does not work.
Tom
 

gutknebr

New Member
Joined
May 16, 2002
Messages
8
I tried that, but the two available color pallets are slightly different, which means I can still see two different colors.
 
L

Legacy 98055

Guest
Hi Gut.
You can create a custom color for your control which will be able to match that of your cell background. From properties, choose backcolor, pallette, right click on one of the white squares at the bottom, create your color. You can also type in the red, green, blue values 0-255, I think.
I wonder if you can return the rgb from an Excel colorindex???
Must see! :)
Tom
 

Watch MrExcel Video

Forum statistics

Threads
1,122,484
Messages
5,596,407
Members
414,064
Latest member
Duncthegreat

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