Share via


_CommandBarButton.Move Method (Object, Object)

Moves the specified command bar control to an existing command bar.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Function Move ( _
    Bar As Object, _
    Before As Object _
) As CommandBarControl
'Usage
Dim instance As _CommandBarButton
Dim Bar As Object
Dim Before As Object
Dim returnValue As CommandBarControl

returnValue = instance.Move(Bar, Before)
CommandBarControl Move(
    Object Bar,
    Object Before
)

Parameters

  • Bar
    Type: System.Object

    A number that indicates the position for the control. The control is inserted before the control currently occupying this position. If this argument is omitted, the control is inserted on the same command bar.

  • Before
    Type: System.Object

    A CommandBar object that represents the destination command bar for the control. If this argument is omitted, the control is moved to the end of the command bar where the control currently resides.

Return Value

Type: Microsoft.Office.Core.CommandBarControl

Implements

CommandBarControl.Move(Object, Object)

See Also

Reference

_CommandBarButton Interface

_CommandBarButton Members

Move Overload

Microsoft.Office.Core Namespace