Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm using the following bit of code adapted from something I found
here to place some check boxes on a worksheet. Sub InsertCheckBoxes() 'from Dave Peterson Dim i As Long Const firstrow As Long = 2 Const lastrow As Long = 18 Const cb_col As Long = 3 'column C For i = firstrow To lastrow With Cells(i, cb_col) If Cells(i, 2).Value Like "*Pend*" Then With ActiveSheet.CheckBoxes.Add(.Left, .Top, .Width, .Height) ' .Name = "cb" & Format(i - 1, "000") .Caption = "" End With End If End With Next i End Sub I've taken out a few bits I didn't need. What I find by right clicking on a check box is that the "container" for the check box fills the cell it is in and the check box is to the left. I was wondering if it would be possible to programmatically reduce the size of the container around the check box and make it flush right in the cell, oh, and one other thing, can the container background be made white or opaque. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Check and clear Multiple check boxes | Excel Programming | |||
Copy and move check box (check boxes) with new cell link? | Excel Worksheet Functions | |||
all the check boxes should be checked if i check a particular checkbox in that row | Excel Programming | |||
Enable check box in protected sheet + group check boxes | Excel Discussion (Misc queries) | |||
How do i create a value for check boxes or option boxes | Excel Discussion (Misc queries) |