PDA

View Full Version : MsgBox with custom buttons or list of options?



Jennifer
09-17-2013, 10:57 PM
Is there a way to give the user a list of options to choose from? It could be a MsgBox type control where I could specify custom buttons (Yes, No, Red, Blue, High, Low, etc.) or a list of radio buttons with keyboard shortcuts or something like that.

Jay Freedman
09-18-2013, 07:32 AM
Create a userform. Here are a couple of tutorials: http://www.word.mvps.org/FAQs/Userforms/CreateAUserForm.htm and http://gregmaxey.mvps.org/word_tip_pages/create_employ_userform.html

You can put on radio buttons, and/or several command buttons, and/or a list box. Your choice should be based on how many alternatives you need to present, and how much text you need to describe them. For just a few choices with short names, you can use command buttons. For a moderate number of choices (say, 5 to 10) with longer names, use option buttons (or check boxes, if the choices aren't mutually exclusive). For more than 8 to 10 choices, use a list box.

The tutorials describe how to determine which choice the user selected and how to get that information back to the document.