Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force mandatory input into cell before closing

Status
Not open for further replies.

LBryant777

IS-IT--Management
Mar 24, 2004
23
US
I am working on a workbook and I want to use an checkbox control to be checked off on each sheet if the form is completed. However, there is one cell 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 cbCompleted()
If Application.Trim(f15) = "" Then
MsgBox "Complete the Comments Field."
Worksheets("Sheet1").Range("b10").Value = False
End If
End Sub

Regardless of whether the field has text or is empty, I still get the text box. Can someone help me? Thanks!
 


Please post code question in VBA Visual Basic for Applications (Microsoft) forum707

Skip,
[sub]
[glasses] [red]Be Advised![/red] A chicken, who would drag a wagon across the road for 2 cents, is…
POULTRY in motion to PULLET for a PALTRY amount! [tongue][/sub]
 
I thought that forum might be more applicable after I posted here. Thanks for the confirmation!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top