ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Mouse Down event (https://www.excelbanter.com/excel-programming/288959-mouse-down-event.html)

Pal

Mouse Down event
 
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



Peter Atherton[_21_]

Mouse Down event
 
Pal

How about a click or dblclick event

Regards
Peter
-----Original Message-----
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


.


Pal

Mouse Down event
 
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.



"Peter Atherton" wrote in message
...
Pal

How about a click or dblclick event

Regards
Peter
-----Original Message-----
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


.





All times are GMT +1. The time now is 12:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com