LSet is used to left align data within strings and variables of user-defined type. This error has the following causes and solutions:
If you are trying to block assign one array to another, LSet does not work. You must use a loop to assign each element individually.
LSet can also be used to assign the elements of a user-defined type variable to the elements of a different, but compatible, user-defined type. Although objects are similar to user-defined types, you can't use LSet on them. Similarly, you can't use LSet on variables of user-defined types that contain strings, objects, or variants.
For additional information, select the item in question and press F1.