Home > other >  Process parameter alarm (function)
Process parameter alarm (function)

Time:11-10

Teachers:
I am in the process of learning VBA (function), if I am the type of a parameter is set to the string, parameters no problem, but if set to long, will prompt alarm, specific as follows: "compiler error: inconsistent ByRef parameter type", bother everybody to help me see, is what causes, how to modify, thank you,
Private Sub CommandButton1_Click ()
Dim x, y As Long
X=10
Y=100
Call AAD_1 (x, y)
End Sub

Sub AAD_1 (xx As Long, yy As Long) 'set a AAD_1 process, to verify the parameters of traditional
Dim Z As Long
Z=xx + yy
End Sub
  • Related