The Visible property can't be set for a top-level menu while an ActiveX component's menu is merged with a container form's menu. This error has the following cause and solution:
Test to ensure that menus are not merged before setting Visible for top-level menus.