ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   MouseUP event (https://www.excelbanter.com/excel-programming/398819-mouseup-event.html)

avi

MouseUP event
 
Hello,

I use an activeX component(SSlider4) that has a MouseUp event. But i
continue to get a compile error stating that "the declaration of
parameters does not match event of the same name"

Private Sub SSlider4_Mouseup(x As Long, y As Long)
MsgBox "Fired!"
End Sub

Do I miss something?

Thanks a lot

Avi


Chip Pearson

MouseUP event
 
From what library are you getting the Slider control? The MouseUp event for
the Slider in MSComCtlLib is

Private Sub Slider1_MouseUp(ByVal Button As Integer, _
ByVal Shift As Integer, _
ByVal x As stdole.OLE_XPOS_PIXELS, _
ByVal y As stdole.OLE_YPOS_PIXELS)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)

"avi" wrote in message
oups.com...
Hello,

I use an activeX component(SSlider4) that has a MouseUp event. But i
continue to get a compile error stating that "the declaration of
parameters does not match event of the same name"

Private Sub SSlider4_Mouseup(x As Long, y As Long)
MsgBox "Fired!"
End Sub

Do I miss something?

Thanks a lot

Avi




All times are GMT +1. The time now is 04:08 AM.

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