Check Box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know of a way to convert a cell to a check box? We would like to
convert the cell rather than using the active X controls on top of it.
Thanks.
 
You could double-click the cell and "convert" it to a
checkbox:

Private Sub Worksheet_BeforeDoubleClick(ByVal Target _
As Range, Cancel As Boolean)
With ActiveCell
.Value = "ü"
.Font.Name = "Wingdings"
.Borders(xlEdgeLeft).LineStyle = xlContinuous
.Borders(xlEdgeTop).LineStyle = xlContinuous
.Borders(xlEdgeBottom).LineStyle = xlContinuous
.Borders(xlEdgeRight).LineStyle = xlContinuous
.ColumnWidth = 2.57
End With
End Sub

---
To use, right-click on the sheet tab, go to View Code,
and paste in the code above. Press ALT+Q to exit.

HTH
Jason
Atlanta, GA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top