Hi all
Using VBA in Excel, I want to intercept a mouseup and mousedown event for a command button dragged off the control toolbox and placed in the spreadsheet.
I have used the declaration
Private Sub CommandButton1_mousedown(button, shift, x, y)
and also the version with "Byval button as long" etc but to no avail. I get the following message:
"Procedure declaration does not match description of event or procedure having the same name"
I am able to use the 'Click' event. What am I doing wrong?
With thanks
Using VBA in Excel, I want to intercept a mouseup and mousedown event for a command button dragged off the control toolbox and placed in the spreadsheet.
I have used the declaration
Private Sub CommandButton1_mousedown(button, shift, x, y)
and also the version with "Byval button as long" etc but to no avail. I get the following message:
"Procedure declaration does not match description of event or procedure having the same name"
I am able to use the 'Click' event. What am I doing wrong?
With thanks