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?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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
 
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,164,671
Messages
5,838,694
Members
430,564
Latest member
Raeyven

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