Sub TestThis()
Dim State As String
State = ActiveSheet.Range("A1").Value
If State = "" Then MsgBox "Please Work"
End Sub
Sub Test2()
With ThisWorkbook.ActiveSheet
If Len(Range("A1")) = 0 Then
MsgBox "Get Cracking!"
Else: MsgBox "Oh good your on your way. :-)"
End If
End With
End Sub
You do not have to declare State in this case but it is good practice when you are using the variable in a loop