A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
I'm of the opinion that this is a bug. If we use mousedown and put a STOP command in the code we can establish that the code isn't called by any subsequent clicks so it seems that it's the execution of the code one-time that causes the problem.
Intrigued by this I too did some Googling and can find many references that allude to this but none that actually state it's a bug of any kind. Oddly if you put the STOP command in the code and click in textbox 1 then the code executes, textbox2 gets the focus and the code halts at the stop. If you then tap F5 in VB editor to continue then clicking anywhere on the userform does not make it select textbox1 again and it behaves as you would expect.
Private Sub TextBox1_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
TextBox2.SetFocus
stop
End Sub