Link to home
Start Free TrialLog in
Avatar of João serras-pereira
João serras-pereiraFlag for Portugal

asked on

ByRef type mismatch when invoking a sy+ub

Hi.
I am getting a "By Ref argument type mismatch" which I can't understand

The error is below:

User generated image
but the argument looks correct (it is declared)

User generated image
and the sub is defined:

User generated image
can anyone help?
Screen-Shot-2018-03-10-at-18.43.32.png
Screen-Shot-2018-03-10-at-18.45.52.png
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

The sub expects an Integer but you are passing a double. Change either one so that they match.
ASKER CERTIFIED SOLUTION
Avatar of Jim Dettman (EE MVE)
Jim Dettman (EE MVE)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of João serras-pereira

ASKER

Hi THANKS!!!! did not know that!!!