Hi ,
I have following macros for check box, but I need your help to modified this macros to suit my requirement. Is this possible if I check the box it show "Attached" in check box caption, but if it is black or cross than caption should be " Requested". Thanks for help.
Macors as follows -
Sub AddCheckBox()
Dim cell As Range
DelCheckBox 'Do the delete macro
'or delete all checkboxes in the worksheet
'ActiveSheet.CheckBoxes.Delete
For Each cell In Range("F15:F21,F24:F25")
With ActiveSheet.CheckBoxes.Add(cell.Left, _
cell.Top, cell.Width, cell.Height)
.LinkedCell = cell.Offset(, 0).Address(External:="")
.Interior.ColorIndex = xlAutomatic 'or xlNone or xlAutomatic
.Caption = "Attached"
.Border.Weight = xlThin
End With
Next
With Range("F15:F21,F24:F25")
'.Rows.RowHeight = xlAutomatic
End With
End Sub
-------------------------------
Sub DelCheckBox()
For Each cell In Range("F15:F21,F24:F25")
Worksheets("Check List").CheckBoxes.Delete
Next
End Sub
I have following macros for check box, but I need your help to modified this macros to suit my requirement. Is this possible if I check the box it show "Attached" in check box caption, but if it is black or cross than caption should be " Requested". Thanks for help.
Macors as follows -
Sub AddCheckBox()
Dim cell As Range
DelCheckBox 'Do the delete macro
'or delete all checkboxes in the worksheet
'ActiveSheet.CheckBoxes.Delete
For Each cell In Range("F15:F21,F24:F25")
With ActiveSheet.CheckBoxes.Add(cell.Left, _
cell.Top, cell.Width, cell.Height)
.LinkedCell = cell.Offset(, 0).Address(External:="")
.Interior.ColorIndex = xlAutomatic 'or xlNone or xlAutomatic
.Caption = "Attached"
.Border.Weight = xlThin
End With
Next
With Range("F15:F21,F24:F25")
'.Rows.RowHeight = xlAutomatic
End With
End Sub
-------------------------------
Sub DelCheckBox()
For Each cell In Range("F15:F21,F24:F25")
Worksheets("Check List").CheckBoxes.Delete
Next
End Sub