Function call on left side of assignment must return Variant or Object

   

A function call can appear on the left side of an assignment, but only if the return value of the function is an Object or Variant. This error has the following cause and solution:

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).