DeleteItem

Removes a menu item added with the AppendItem macro.

Syntax

DeleteItem("item-id")

Parameter Description

item-id Item identifier string used in the AppendItem macro. The item ID must be enclosed in quotation marks.

Example

The following macro removes the Example menu item that was created in the example for the AppendItem macro:

DeleteItem("mnu_example")

Comments

Windows Help ignores this macro if it is executed in a secondary window.

See Also

AppendItem, ChangeItemBinding, CheckItem, DisableItem, EnableItem, InsertItem, InsertMenu, UncheckItem