I have several worksheets with pricing and checkboxes that when checked total the costs up automatically. I have a code that adds the checkboxes for me automatcally and also links them to the proper cell for the true and false at the same time. I've added conditional formatting to make the price cell turn yellow and bold the type when the checkbox is checked, but when printed in black and white, this is not obvious enough that this is the choice that has been selected and the checkboxes are so small that you can hardly tell when they are checked. My question is can I add code to what I already have that will also add a circle around the price when the checkbox is checked? Here is the code I have:
Option Explicit<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
Sub insertCheckboxes()<o></o>
<o></o>
Dim myBox As CheckBox<o></o>
Dim myCell As Range<o></o>
<o></o>
Dim cellRange As String<o></o>
Dim cboxLabel As String<o></o>
Dim linkedColumn As String<o></o>
<o></o>
cellRange = InputBox(Prompt:="<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-comffice:smarttags" /><st1lace><st1:PlaceName>Cell</st1:PlaceName> <st1:PlaceType>Range</st1:PlaceType></st1lace>", _<o></o>
Title:="<st1lace><st1:PlaceName>Cell</st1:PlaceName> <st1:PlaceType>Range</st1:PlaceType></st1lace>")<o></o>
<o></o>
linkedColumn = InputBox(Prompt:="Linked Column", _<o></o>
Title:="Linked Column")<o></o>
<o></o>
cboxLabel = InputBox(Prompt:="Checkbox Label", _<o></o>
Title:="Checkbox Label")<o></o>
<o></o>
With ActiveSheet<o></o>
For Each myCell In .Range(cellRange).Cells<o></o>
With myCell<o></o>
Set myBox = .Parent.CheckBoxes.Add(Top:=.Top, _<o></o>
Width:=.Width, Left:=.Left, Height:=.Height)<o></o>
<o></o>
With myBox<o></o>
.LinkedCell = linkedColumn & myCell.Row<o></o>
.Locked = False 'This unlocks the checkbox also<o></o>
.Caption = cboxLabel<o></o>
.Name = "checkbox_" & myCell.Address(0, 0)<o></o>
End With<o></o>
<o></o>
.NumberFormat = ";;;"<o></o>
End With<o></o>
<o></o>
Next myCell<o></o>
End With<o></o>
End Sub<o></o>
Option Explicit<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
Sub insertCheckboxes()<o></o>
<o></o>
Dim myBox As CheckBox<o></o>
Dim myCell As Range<o></o>
<o></o>
Dim cellRange As String<o></o>
Dim cboxLabel As String<o></o>
Dim linkedColumn As String<o></o>
<o></o>
cellRange = InputBox(Prompt:="<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-comffice:smarttags" /><st1lace><st1:PlaceName>Cell</st1:PlaceName> <st1:PlaceType>Range</st1:PlaceType></st1lace>", _<o></o>
Title:="<st1lace><st1:PlaceName>Cell</st1:PlaceName> <st1:PlaceType>Range</st1:PlaceType></st1lace>")<o></o>
<o></o>
linkedColumn = InputBox(Prompt:="Linked Column", _<o></o>
Title:="Linked Column")<o></o>
<o></o>
cboxLabel = InputBox(Prompt:="Checkbox Label", _<o></o>
Title:="Checkbox Label")<o></o>
<o></o>
With ActiveSheet<o></o>
For Each myCell In .Range(cellRange).Cells<o></o>
With myCell<o></o>
Set myBox = .Parent.CheckBoxes.Add(Top:=.Top, _<o></o>
Width:=.Width, Left:=.Left, Height:=.Height)<o></o>
<o></o>
With myBox<o></o>
.LinkedCell = linkedColumn & myCell.Row<o></o>
.Locked = False 'This unlocks the checkbox also<o></o>
.Caption = cboxLabel<o></o>
.Name = "checkbox_" & myCell.Address(0, 0)<o></o>
End With<o></o>
<o></o>
.NumberFormat = ";;;"<o></o>
End With<o></o>
<o></o>
Next myCell<o></o>
End With<o></o>
End Sub<o></o>