Display Custom Dialog Boxes

Display Custom Dialog Boxes


Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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()
End Sub

© 2015 Microsoft