VB中去除重复数字
发布网友
发布时间:2022-07-14 15:36
我来回答
共1个回答
热心网友
时间:2023-09-29 03:22
Private Sub Text1_Change()
Text4 = ""
For i = 1 To Len(Text1)
For j = 1 To Len(Text2)
If Mid(Text1, i, 1) = Mid(Text2, j, 1) Then GoTo a
Next
For j = 1 To Len(Text3)
If Mid(Text1, i, 1) = Mid(Text3, j, 1) Then GoTo a
Next
Text4 = Text4 & Mid(Text1, i, 1)
a:
Next
End Sub
Private Sub Text2_Change()
Text1_Change
End Sub
Private Sub Text3_Change()
Text1_Change
End Sub