XL97: How to Create a Template for a Toolbox ControlLast reviewed: February 27, 1998Article ID: Q160473 |
The information in this article applies to:
SUMMARYThe UserForm Toolbox in the Visual Basic Editor contains all the default controls that you can add to a UserForm. You can add other custom controls that are installed on your computer. For example, you can add a third type of control that is a "template" for a control that you already customized. This article describes the process for customizing an existing control and adding a template of the control to the Toolbox.
MORE INFORMATIONA template control retains all the properties you specify, which makes it easier to use than resetting the properties of the same default control each time you add the control to a UserForm.
Creating a Template ControlTo create a template CommandButton control, and then add it to the Toolbox, use the following steps:
NOTE: The Name properties for the CommandButtons you add to the UserForm are CommandButton1 and CommandButton2. The Name property is the only property that is different when you use the template control to add a CommandButton to a UserForm.
Deleting a Template ControlTo delete a template control from the Toolbox, use the following steps:
REFERENCESFor more information about customizing toolbox controls, click the Index tab in Visual Basic for Applications Help, type the following text
toolboxand then double-click the selected text to go to the "Add a customized control to the Toolbox" topic.
|
Additional query words: 97 XL97
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |