Removes existing groups.

Syntax

Send_Message(Ctrl, "OLE.RemoveGroups", KeyList)

Parameters

PropertyDescription
KeyListThe @FM delimited list of group keys

Remarks

The RemoveGroups method permanently removes groups from the ribbon. If you want to temporarily hide groups, use the GroupVisible property instead.

All you have to do is pass an @FM delimited list of group keys. All controls within the specified groups will also be deleted, though any commands associated with the deleted controls are left alone so you can reuse them later.

Example

// Delete a bunch of groups
KeyList = "NAVIGATE":@FM:"PAGES":@FM:"TABLES":@FM:"SYMBOLS"
Send_Message(@Window:".OLE_RIBBON", "OLE.RemoveGroups", KeyList)

See Also

AddGroups

  • No labels