Hi,
I have a problem with function and sub using this function. Everything work if I use value of argument (integer in this case) and gives and ByRef argument type mismatch if I try to use integer variable.
situation is as follows:
I have a public function in ThisWorkbook:
This function works.
Than in user form I have sub that uses this function. This sub is than used by various controlls.
as you can see in the line :
I had put values "I" and 500 (now they are static to avoid problems).
Than in one of control buttons I call SprawdzNumer sub. and that is where I got error.
numer is integer variable declared in this userform. Its value is 500 (for tests).
If I run the same code only not using numer variable but value of 500 I got no errors.
What is wrong?
Cris
Bookmarks