Forum Discussion
sbkeenan
10 years agoFrequent Contributor
Hi Kksenthil
Without knowing what the function is and the parameter passed, it's difficult to be precice. However, this kind of error is usually down to the function expecting a numeric (or text based) parameter, but receives the other type. If it is expecting a numeric value, let's say an integer value, before passing the argument, try converting it by using CInt(<your argument>) This will, if possible, convert it to an actual integer, whereby the function will be able to use it.
As I said, without specifics, it's difficult to be more precise and the above example is only one possibility, there are others, but hopefully this will at least point you in the right direction.
Regards
Stephen.