Dim s As String = "'',"
For Each r As Row In Tables("表A").Rows
s &= "'" & r("第一列") & "|" & r("第二列") & "',"
Next
vars("s") = s.trim(",")
msgbox(vars("s"))
------------
"第一列+'|'+第二列 not in (" & vars("s") & ")"