I have some merged cells , namely C4 and D4. I am trying to run some code to check if the range (c4:D4) is empty and if so to have the msgbox popup and the macro end. It works fine but it continues to keep showing the Msgbox even after I have entered a contact name into the merged cells. I can only assume it is because the cells are merged. Can anyone help as to why this is happening after Ive entered a contact name.
Range("C4").Select
If IsEmpty(C4) = True Then
MsgBox "PLEASE ENTER CONTACT NAME"
End If
If IsEmpty(C4) = True Then Exit Sub
Range("C4").Select
If IsEmpty(C4) = True Then
MsgBox "PLEASE ENTER CONTACT NAME"
End If
If IsEmpty(C4) = True Then Exit Sub