Add a control to a form

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

Use any of the following methods to add a control from the Toolbox to your form. You can also use these methods to insert a control in a Frame, TabStrip, or MultiPage on the form.

  • Click a control in the Toolbox and then click in the form. The control appears in its default size. You can then drag the control to change its size.

  • Drag a control from the Toolbox to the form. The control appears in its default size.

  • Double-click the control in the Toolbox, and then click in the form once for each control you want to create. For example, to create four command buttons, double-click the CommandButton in the Toolbox and then click four times in the form.