InitUserDefinedMenu method

Applies to

Example

Description

Initializes the user-defined menu using MenuText. If an empty text string is passed, the menu will not be visible, though the commands will be accessible via accelerators (short cuts). If this method is not called before the first call to AddMenuItem, the menu is named "UserDefined".

Syntax

Object.InitUserDefinedMenu ( MenuText)

Part

Data type

Description

Object

Object

An object expression that evaluates to an object in the Applies To list.

MenuText

String

 

Settings

Return value

None.

Remarks

Classic method

XxxxInitUserDefinedMenu