I suspect Robert wanted to see what code was in TOT_PURCHASE_DblClick,
TOT_PURCHASE2_DblClick, etc.
By the way, your syntax is technically incorrect.
When you're invoking a sub, either leave off the parentheses:
TOT_PURCHASE_DblClick Cancel
or use the Call statement:
Call TOT_PURCHASE_DblClick (Cancel)
What you're doing will work if you've only got 1 parameter, but if your sub
is expecting more than 1 parameter, it will not work. In actual fact,
putting the parenthesis around Cancel without using the Call keyword means
you're passing the parameter ByVal, not ByRef. This means that if the value
of the parameter is changed in the routine being called, you will NOT get
that value in the routine that called the routine. Perhaps the following
example will help.
I've got a routine named "Called", the sole purpose of which is to change
the value of the parameter being passed:
Sub Called(TextString As String)
TextString = "Passed from Called"
End Sub
If I run this code:
Dim strText As String
strText = "Passing this to Called"
Debug.Print "strText before call: " & strText
Called strText
Debug.Print "strText after call: " & strText
I get the following in the Debug window:
strText before call: Passing this to Called
strText after call: Passed from Called
However, if I use parentheses when calling the routine
Dim strText As String
strText = "Passing this to Called"
Debug.Print "strText before call: " & strText
Called (strText)
Debug.Print "strText after call: " & strText
I get:
strText before call: Passing this to Called
strText after call: Passing this to Called