Move Method

Move Method

         Example         Applies To         Specifics

CommandBarControl object: Moves the specified command bar control to an existing command bar.

Assistant object: Moves the Office Assistant to the specified location.

Syntax 1

expression.Move(Bar, Before)

Syntax 2

expression.Move(xLeft, yTop)

expression   Syntax 1: Required. An expression that returns a CommandBarControl, CommandBarButton, CommandBarPopup, or CommandBarComboBox object.

Syntax 2: Required. An expression that returns an Assistant object.

Bar   Optional Variant. 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 same command bar (the command bar where the control currently resides).

Before   Optional Variant. 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.

xLeft   Required Integer. The left position of the Office Assistant window, in points.

yTop   Required Integer. The top position of the Office Assistant window, in points.