How to make the background color of checkbox transparent in Excel?
Normally, when inserting checkboxes (ActiveX Control) in cells in Excel, the checkbox background color will cover the fill color of the worksheet as below screenshot. For displaying the whole background color of the worksheet, you need to change the checkbox’s background color to be transparent. And this article will provide a VBA method to solve this problem.
Please do as follows to make the background color of checkboxes transparent with VBA code.
1. In the worksheet contains the checkboxes you need to make them transparent, press the Alt + F11 keys simultaneously to open the Microsoft Visual Basic for Applications window.
2. In the Microsoft Visual Basic for Applications window, please click Insert > Module. Then copy and paste VBA code into the Code window.
VBA code: Make the background color of checkboxes transparent
Dim xOleChk As OLEObject
Application.ScreenUpdating = False
For Each xOleChk In ActiveSheet.OLEObjects
If TypeName(xOleChk.Object) = "CheckBox" Then
xOleChk.Object.BackStyle = fmBackStyleTransparent
Application.ScreenUpdating = True
3. Press the F5 key or click the Run button to run the code. Then all checkboxes in current worksheet become transparent. See screenshot:
Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
More than 300 powerful features. Supports Office/Excel
2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features
30-day free trial. 60-day money back guarantee.