Ok, I've figured out how to handle the text box array. So my code will include MouseDown checks for the form, frame, and text boxes.
Private Sub form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
' MsgBox "Lefthand mouse button pressed"
SendKeys "{tab}"
Button = 0
ElseIf Button = 2 Then
' MsgBox "Righthand mouse button pressed"
SendKeys "{F12}"
Button = 0
End If
End Sub
Private Sub fraFrame1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
' MsgBox "Lefthand mouse button pressed"
SendKeys "{tab}"
Button = 0
ElseIf Button = 2 Then
' MsgBox "Righthand mouse button pressed"
SendKeys "{F12}"
Button = 0
End If
End Sub
Private Sub Text_MouseDown(Index as Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
If Index => 0 and Index < 19 then
If Button = 1 Then
' MsgBox "Lefthand mouse button pressed"
SendKeys "{tab}"
Button = 0
ElseIf Button = 2 Then
' MsgBox "Righthand mouse button pressed"
SendKeys "{F12}"
Button = 0
End If
End If
End Sub
Thanks for your help everyone.