+ Reply to Thread
Results 1 to 3 of 3

Prompting User to Select Radio Button

  1. #1
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Prompting User to Select Radio Button

    Hi all,
    How can I prompt a user with a msgbox when they forget to choose a radio button. The button is in a form and requires selection. Or, is there a way to have a radio button to be automatically chosen when the form loads? As it is, the radio buttons are blank upon load. There are 3 radio buttons for the user to choose from if that matters. I'm just looking for some sort of control on the situation if they forget to choose.

    Sorry if the title is bad, I've been gazing at my computer trying to think of an appropriate title without much luck.

    Thanks a million
    Last edited by Mordred; 03-08-2011 at 06:49 PM.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Prompting User to Select Radio Button

    Hello Mordred,

    You can set the option button of your choice in the UserForm_Initialize() event module. The code below will set OptionButton1 when the UserForm is loaded.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Prompting User to Select Radio Button

    Thanks Leith, that works quite well.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1