A simple check could be to add a Formula and some Conditional Formatting just as a visual aid.
Say you have the values in columns A and B you could create a third column and add the following formula: =IF(B1="", "", IF(A1=B1,"MATCH","DON'T MATCH"))
I've not had much time to test anything in code. Would you have set columns or a range to work with? How are you entering the data? Will it be column by column, left to right? If these are set it would make it easier. If not you could do something with ActiveCell and Offset.
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If ActiveCell.Value <> ActiveCell.Offset(0, -1).Value Then MsgBox "Don't match" End If End Sub
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Excel Forum.
The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.