Command Button

Use CommandButton controls, shown in Figure 3-22, to allow users to signify that they have made all the selections and text entries they want to make, and either want to continue on with the application or want to cancel the operation. The most common use of this control is for OK and Cancel button operations.

The following is the most common method of ending a running application:

Private Sub cmdOK_Click()

Unload Me End Sub

Figure 3-21. A UserForm with a Frame control
Figure 3-22. A UserForm with a CommandButton control

Was this article helpful?

0 0

Post a comment