X
xavi garriga
Dear all;
I'm trying to use a function in my Excel macro and when I call the macro,
appears a message like this:
"Compilation error:
Type of argument of byRef is not coincident." (direct translation from
spanish)
my code is this:
Sub CommandButton1_Click()
Dim filaini, filafi As Integer
For k = 5 To 17
filaini = ActiveSheet.Cells(k, 16).Value
filafi = ActiveSheet.Cells(k + 1, 16).Value
Call calculminim(filaini, filafi)
k = k + 2
Next
End Sub
and the function starts:
Function calculminim(filainicial As Integer, filafinal As Integer)
If you need more part of the code, ask me.
Thank you very much to all!
I'm trying to use a function in my Excel macro and when I call the macro,
appears a message like this:
"Compilation error:
Type of argument of byRef is not coincident." (direct translation from
spanish)
my code is this:
Sub CommandButton1_Click()
Dim filaini, filafi As Integer
For k = 5 To 17
filaini = ActiveSheet.Cells(k, 16).Value
filafi = ActiveSheet.Cells(k + 1, 16).Value
Call calculminim(filaini, filafi)
k = k + 2
Next
End Sub
and the function starts:
Function calculminim(filainicial As Integer, filafinal As Integer)
If you need more part of the code, ask me.
Thank you very much to all!