Can't load or unload this object (Error 361)
A Load statement or Unload statement has referenced an invalid object or control. This error has the following causes and solutions:
You tried to load or unload an object that isn't a loadable object, such as Screen, Printer, or Clipboard. Delete the erroneous statement from your code.
You tried to load or unload an existing control that isn't part of a control array. For example, assuming that a TextBox with the Name property Text1 exists,
Load Text1
will cause this error.Delete the erroneous statement from your code or change the reference to a control in a control array.
You tried to unload a Menu control in the Click event of its parent menu. Unload the Menu control with some other procedure.
You tried to unload the last visible menu item of a Menu control. 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.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om