Collapse the table of content
Expand the table of content
Expand Minimize

Prompting for Information


Contribute to this content

Use GitHub to suggest and submit changes.

Last modified: July 28, 2015

Applies to: Word 2013

There are several different ways you can prompt for information from a user.

  • Use the Visual Basic InputBox function to display a dialog box with a message and an edit box. When the user clicks OK, the function returns the text that the user entered.

  • Use the Visual Basic MsgBox function to display a simple message. You can display several different command buttons and icons. This function returns a number that indicates which button was clicked.

  • Use a built-in Microsoft Word dialog box to get user input for a specific Word feature.

  • Use a custom form to get user input. For information about adding controls to a form, see Add a control to a form.

© 2015 Microsoft