| Value | Meaning | |
| xlOn | Data Entry mode is turned on. | |
| xlOff | Data Entry mode is turned off. | |
| xlStrict | Data Entry mode is turned on, and pressing ESC won't turn it off. | |
If (Application.DataEntryMode = xlOn) Or _
(Application.DataEntryMode = xlStrict) Then
Application.DataEntryMode = xlOff
End If