Private Sub Text1_Change()
If Text1.Text = "" Or Text1.Text = vbNullString Then Exit Sub
If Right(Text1.Text, 1) > "9" Or Right(Text1.Text, 1) < "0" Then
Text1.Text = Left(Text1.Text, Len(Text1.Text) - 1)
Text1.SelStart = Len(Text1.Text)
Exit Sub
End If
If Text2.Text <> "" Or Text2.Text <> vbNullString Then
Text3.Text = 公式
If text6.Text <> "" Or Text2.Text <> vbNullString Then
text7.Text = Val(text6.Text - Text3.Text)
End If
End If
End Sub
别的TEXT源码雷同
text1.2 3.为调整前的第1,2,3个text
text4.5.6为调整后的第1.2 ,3个text
text7为最下面的那个text