Hi, and welcome to the forum. Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.
Posting code between [CODE] [/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
(Since this is your first post I'll change it on this occasion but please note for the futrure)
Almost certainly you have a space or perhaps another non visible character in one of the cells.
Personally for checking things like this I prefer to use formulae in the woorksheet and then check the value of the formula in the macro.
So for instance I'd have a helper column that contained the formula
Formula:
=IF(COUNTA(J1,T1:V1)=4,0,1)
Then a check cell which I'd name say "Check_Complete" which contains the formula
=IF(SUM(check_column)<>0,"Incomplete","")
Then the macro code would be
IF Range("Check_Complete") <> "" Then
Cancel = True
MsgBox "Please check New Trading Name, Main Usage and Officer's Intials are completed." & vbNewLine & vbNewLine & "This file cannot been saved unless they are."
End
End If
Bookmarks