Mouse Down event

  • Thread starter Thread starter Pal
  • Start date Start date
P

Pal

I am trying to setup a do while loop
to occur while the left mouse button is down within a text box.

I see a mouse down function but it is only for charts I believe
Is there a separate call for this event?

Thanks
 
I have it working with mouseup
but it only happens when I finish selecting the range.

I wanted a live update as I move the mouse - so I used:

Private Sub textbox1_Mouseup(ByVal Button As Integer, _
ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
Cells(4, 8).Value = TextBox1.SelText
End Sub

but it made my excel crash every time.
 
Back
Top