Table of contents
TOC
Collapse the table of content
Expand the table of content

Display Custom Dialog Boxes

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

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
© 2017 Microsoft