Dear Experts,
I wrote these syntax below, I found them worked, but my cursor keep spinning loading, never ended to end sub.
At the end, I had to forcefully do 'crtl+alt+del' to close excel, otherwise cursor keep spinning loading endlessly.
Anyone has any idea why it does so? I’m very gratefull for any help.
Thank you very much
My syntax in Sheet1 :
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A1")) Is Nothing Then
TryOut
End If
End Sub
My syntax in Module :
Sub TryOut ()
with Sheets("sheet1").Range("A1")
answer =.Value
If Application.IsText(answer) Then
MsgBox "Fill out with Number"
.ClearContents
ElseIf answer > 5 Or answer < 3 Then
MsgBox "Fill out number that >3 or <5"
.ClearContents
Else
MsgBox "That’s Correct"
End If
End with
End Sub
Bookmarks