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 they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
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
 
Upvote 0
I tried that, but the two available color pallets are slightly different, which means I can still see two different colors.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,947
Messages
6,122,411
Members
449,081
Latest member
JAMES KECULAH

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