LBryant777
IS-IT--Management
I am working on a workbook and I want to use an checkbox control to be checked off on each sheet when the worksheet is completed. However, there is one merged cell (d15 -k15) on each sheet that needs to be filled in with text before the sheet can be considered complete. I tried using this code attached to an ActiveX control checkbox:
Private Sub CheckBox1_Click()
Range("a1").Activate
If IsEmpty(D15) Then
MsgBox "Complete the Comments Field."
CheckBox1.Value = False
Else
CheckBox1.Value = True
End If
End Sub
However, regardless of whether the field has text or is empty, I still get the text box. Also, I have to click the OK in the message box twice - first time when it checks the cell and the second time when it clears the cell that holds the value of the checkbox. Can someone help me? Thanks!
Private Sub CheckBox1_Click()
Range("a1").Activate
If IsEmpty(D15) Then
MsgBox "Complete the Comments Field."
CheckBox1.Value = False
Else
CheckBox1.Value = True
End If
End Sub
However, regardless of whether the field has text or is empty, I still get the text box. Also, I have to click the OK in the message box twice - first time when it checks the cell and the second time when it clears the cell that holds the value of the checkbox. Can someone help me? Thanks!