ruthverkuyl
New Member
- Joined
- May 19, 2009
- Messages
- 1
I am trying to force a user response to a cell, when the user leaves the cell blank and tries to navigate to another sheet, the message box would remind them of required entry and return to the sheet and cell.
I have set up on deactivate sheet to run message box when cells are false which works, but I can't seem to get it right to return to the sheet. It flashes the tab that it is activating but it is in a loop and I have to force quit.
Thank you for any assistance
Ruth
Private Sub Worksheet_Deactivate()
If Range("E69").Value = False Then
If Range("F69").Value = False Then
MsgBox "Required to answer meets competency requirements YES or NO.", vbOKCancel
Sheets("Scoring").Activate
Range("E69").Select
End If
End If
End Sub
I have set up on deactivate sheet to run message box when cells are false which works, but I can't seem to get it right to return to the sheet. It flashes the tab that it is activating but it is in a loop and I have to force quit.
Thank you for any assistance
Ruth
Private Sub Worksheet_Deactivate()
If Range("E69").Value = False Then
If Range("F69").Value = False Then
MsgBox "Required to answer meets competency requirements YES or NO.", vbOKCancel
Sheets("Scoring").Activate
Range("E69").Select
End If
End If
End Sub