the syntax of second and third line shown is wrong.
you cannot achieve multiple assignment in one line of code
try writing in a cell
if A1<>A2 you will get TRUE as result
excel first evaluates A1=A2 (gets false) and then evaluates false=false, which is true - and this is final result.
so ... my vision ;-) of what you try to obtain in second line of your post is:
In simple words: first look for content of SapPartTextBox in Sheets2 column A, and copy the value from coresponding row in column B into textbox2 and also to current sheet in Cells(emptyRow, 7).
Bookmarks