Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim c As Range
Dim cel As Range
Set c = Range("A1:A10000")
Application.EnableEvents = False
If Not Intersect(Target,c) Is Nothing Then
For each cel in c
If cel.Text = " " Then
Application.Goto reference:=cel, scroll:=True
MsgBox ("Field Cannot Be Blank")
Exit For
End If
Next cel
End If
Application.EnableEvents = True
End Sub
|