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:
Change the return type. Note that if the return value is an object or a Variant that contains an object, the assignment is to the default property of the object. If the Variant returned isn't an object, the assignment has no effect.
Enter design mode and set the property in the Property window. Remove the code that tried to set the property programmatically.
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).