Expand Minimize
0 out of 1 rated this helpful - Rate this topic

Displaying a Custom Dialog Box (Word)

To test your dialog box in the Visual Basic Editor, click Run Sub/UserForm on the Run menu.

To display a dialog box from Visual Basic, use the Show method. The following example displays the dialog box named UserForm1.

Private Sub GetUserName() 
 UserForm1.Show 
End Sub
Note Note

Use the Unload method in an event procedure, such as the Click event procedure for a command button, to close a dialog box.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.