1,451
社区成员
发帖
与我相关
我的任务
分享
dim blnIsExists as boolean '是否存在
blnIsExists=false '默认为不存在
For i=1 to A.Rows-1
if trim(B.TextMatrix(B.row,1))=trim(A.TextMatrix(i,1)) then
blnIsExists=true
exit for
end if
Next i
if blnIsExists=False then
A.Rows=A.Rows+1
Else
MsgBox"不可以重复选择!",,"系统提示!"
B.Visible=False
End If