Hello,
I have a table where users enter data. The final entry, in col M, is their name.
I would like to create an VBA code that will display a msg box if the user enters their name in col M without having entered a date in col J.
I've written the following if function which seems to do the job but I don't know how to change it into VBA
=IF(AND(M12="",J12=""),"",IF(AND(M12="",J12<>""),"",IF(AND(J12<>"",M12<>""),"","DATE NEEDED")))
Any help would be appreciated.
John.
I have a table where users enter data. The final entry, in col M, is their name.
I would like to create an VBA code that will display a msg box if the user enters their name in col M without having entered a date in col J.
I've written the following if function which seems to do the job but I don't know how to change it into VBA
=IF(AND(M12="",J12=""),"",IF(AND(M12="",J12<>""),"",IF(AND(J12<>"",M12<>""),"","DATE NEEDED")))
Any help would be appreciated.
John.