Private Sub Text1_GotFocus(Index As Integer)
Text1(Index).BackColor = vbRed
End Sub
Private Sub Text1_LostFocus(Index As Integer)
Text1(Index).BackColor = &H80000005
End Sub
Private Sub Text1_KeyUp(Index As Integer, KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
If Index = Text1.UBound Then
Text1(0).SetFocus
Else
Text1(Index + 1).SetFocus
End If
End If
End Sub
郁闷了,贴完代码发现问题已经结束了。