paddydive
Active Member
- Joined
- Jun 30, 2010
- Messages
- 460
Hi,
I have below code to add checkboxes in cell F1 to F5, the code works perfectly but it does not align the checkboxes.
Please help, i want these checkboxes to fit properly in cells, but now they are overlapping on another.
I have below code to add checkboxes in cell F1 to F5, the code works perfectly but it does not align the checkboxes.
HTML:
Sub de()
Dim chkbx As CheckBox
i = 1
For Each cell In Range("F1:F5")
Set chkbx = ActiveSheet.CheckBoxes.Add(cell.Left, cell.Top, cell.Height, cell.Width)
With chkbx
.Caption = "Day" & i
End With
i = i + 1
Next
End Sub
Please help, i want these checkboxes to fit properly in cells, but now they are overlapping on another.
Last edited: