Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Forms are separate objects that you add to your VBA projects. To do this, open the Visual Basic Editor and either choose Insert, UserForm or drop down the Insert toolbar button (the second from the left) and click UserForm. As you can see in Figure 12.1, VBA performs the following tasks in response to this command:
It adds a Forms branch to the project tree in the Project Explorer.
It creates a new UserForm object and adds it to the Forms branch.
It displays the form in the work area.
It displays the Toolbox.