Parent Property

Read-only. Returns an instance of the Menu object corresponding to the parent menu of the menu or menu item.

Applies to: Menu object, MenuItem object

Syntax

[[Set] parentMenuRet =] object.Parent

The Enabled property syntax has these parts:

Part Description
object Required. An expression that returns an instance of an object in the Applies to list.
parentMenuRet Optional. A Menu type variable.

Remarks

For a MenuItem object (a menu item) Parent returns the menu, which contains the given menu item. For a Menu object (a menu) Parent returns the menu which contains a menu item containing the given menu. For an application or document-level user-defined menu (see CustomMenu property), the Parent property returns Nothing as an upper-level menu doesn't have a parent menu.