Bewerken

Delen via


Use z-order to layer controls

To place a control at the front or back of the z-order:

  1. Select the controls that you want to reposition.

  2. From the Format menu, choose Order.

  3. From the cascading menu, select Bring to Front or Send to Back.

To adjust a control one position in the z-order:

  1. Select the controls that you want to reposition.

  2. From the Format menu, choose Order.

  3. From the cascading menu, select Bring Forward or Send Backward.

Note

You can't undo or redo layering commands, such as Send to Back or Bring to Front. For example, if you select an object and choose Send Backward on the shortcut menu, you won't be able to undo or redo that action.

The Bring to Front, Bring Forward, Send to Back, and Send Backward menu choices let you change the z-order of a control relative to other controls. If the form includes any ListBox, Frame, or MultiPage controls, those controls automatically move as close as possible to the top of the stack. For example, applying Send Backward to a ListBox, Frame, or MultiPage moves the control below other ListBox, Frame, or MultiPage controls, but will not move it below any other type of control in the stack.

Similarly, applying Bring Forward to a control other than a ListBox, Frame, or MultiPage will move the control closer to the top of the stack, but will not move it above any ListBox, Frame, or MultiPage in the stack.

Visually, this means that if a ListBox, Frame, or MultiPage and any other Microsoft Forms control are in the same location on a form, the ListBox, Frame, or MultiPage will always appear on top of the other control. If a ListBox, Frame, or MultiPage is in the same place as another ListBox, Frame, or MultiPage, the z-order of the controls determines which control appears on top of the other.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.