I have 2 cells with values and I want to check if the first 4 characters of those cells are the same.
My code is:
I know this must be a simple thing, but I can't seem to get to the bottom of it..
I need to do this through VBA as a final check on the file that a user will submit to an access database.
My code is:
Code:
Sub ZFVsZT()
If Range("E3").Formula = "=left(E2,4)" <> Range("G3").Formula = "=left(G2,4)" Then
MsgBox "Check values for ZF & ZT"
End If
End Sub
I know this must be a simple thing, but I can't seem to get to the bottom of it..
I need to do this through VBA as a final check on the file that a user will submit to an access database.