Illegal data type for argument: <argument name>

You used a fixed-length string as a parameter in the declaration of a sub or function. Fixed-length strings are not legal as parameters in subs or functions.

Change the parameter's data type to String or Variant.