Skip to content

AddControl Method

Description

Adds a CommandBarControl to the ribbon group.

Syntax

Public Sub AddControl( _
    ByVal Control As CommandBarControl, _
    Optional ByVal Before As Variant _
)

Parameters

  • Control: A CommandBarControl to add to the ribbon group. For example, a control created with the Clone method.
  • Before: The index of an existing control that the new control should be inserted before.

Remarks

The AddControl method allows entire CommandBarControl objects created with the Clone method to be added to the ribbon group.

The FindControl method can be used to search for a CommandBarControl within the Ribbon Bar.

See Also


See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.