+ Reply to Thread
Results 1 to 4 of 4

Message to Display when Option Button is selected

  1. #1
    Registered User
    Join Date
    06-22-2010
    Location
    Birmingham, AL
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Message to Display when Option Button is selected

    Hi,

    I am new at using VBA in excel. I would like to have about 10 option buttons and 10 different message boxes that come up depending on which button has been selected. Not sure how to write that code.

  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: Message to Display when Option Button is selected

    Hello George3232,

    Welcome to the Forum!

    Will these option buttons be on the same worksheet?
    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
    Registered User
    Join Date
    06-22-2010
    Location
    Birmingham, AL
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Message to Display when Option Button is selected

    Yes they will. I basically want a selection to be made and then a mesage window that will define the meaninig of that selection.

  4. #4
    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: Message to Display when Option Button is selected

    Hello ,

    I have created an workbook with both types of Option Buttons: Forms and Control Toolbox. All the buttons are located on "Sheet1". There are notes on the sheet to help you view the code for each type. If you have any questions, let me know.
    Attached Files Attached Files

+ 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