Export (0) Print
Expand All

How to: Display Custom Dialog Boxes

Last modified: February 08, 2012

Applies to: Office 2013 | PowerPoint 2013 | PowerPoint Automation Services | VBA

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

Show:
© 2014 Microsoft