A Load statement or Unload statement has referenced an invalid object or control. This error has the following causes and solutions:
Delete the erroneous statement from your code.
Load Text1
will cause this error.
Delete the erroneous statement from your code or change the reference to a control in a control array.
Unload the Menu control with some other procedure.
Check the setting of the Visible property for the other menu items in the control array before trying to unload a menu item, or delete the erroneous statement from your code.