I tried to insert the following code into an Excel macro
If Range("m1") = "" Then
MsgBox ("Number of Units is blank")
End If
I am doing something wrong, because I get the msgbox whether cell m1 is empty or not. Can anyone help me with the correct syntax?