+ Reply to Thread
Results 1 to 7 of 7

Using VBA to link Radio Buttons to Display an observation

  1. #1
    Registered User
    Join Date
    03-19-2008
    Location
    New Jersey
    Posts
    13

    Using VBA to link Radio Buttons to Display an observation

    I work in the science field and I'm trying to record an observation with some codes within a template. I have 5 different codes (A-E) to choose from and want to display the code that the person has chosen for each of the 6 compounds they are working with.
    I started creating these command radio buttons with some code to display the results in part particular cell, but I would need to do this 30 times linking each group together to get what I want. I know there's an easier way to do this but I'm not sure how so I'm sending this thread to get someone's help.
    Please take a look at my sheet and let me know how I can get my desired results.

    Thanks in advance
    Attached Files Attached Files
    Last edited by isara912; 12-16-2008 at 03:25 PM.

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387
    isara912,

    See the attached workbook "Data Validation - Using VBA to link Radio Buttons to Display an observation - isara912.xls".

    Data Validation may work for you depending on your requirements.


    Have a great day,
    Stan
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Registered User
    Join Date
    03-19-2008
    Location
    New Jersey
    Posts
    13
    Stan,

    Yes, this is how I started but the user doesn't want to pick from a pull down, they want to simply click on a letter and go. This is why I wrote about using the radios. Thanks for the idea, but I can't use that one. Can you help me with the radios?

    Thanks,
    Isara

  4. #4
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387
    isara912,

    Try the attached workbook.

    Double-Click on a cell in range D5:H10


    Have a great day,
    Stan

  5. #5
    Registered User
    Join Date
    03-19-2008
    Location
    New Jersey
    Posts
    13
    It's kinda cool, but I don't think the person will go for that option either. They are very ergonomic and want as few clicks as possible, that's why validation wouldn't work. I'm sorry to be a pest, but I still think I should go with what they are asking me for. Sorry.

  6. #6
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387
    isara912,

    Last try with the "Worksheet_SelectionChange" Event.

    Single Click on a cell in range D5:H10


    Have a great day,
    Stan

  7. #7
    Registered User
    Join Date
    03-19-2008
    Location
    New Jersey
    Posts
    13
    Interesting, I think this will do it. Thank you so much Stan!!

    Happy Holidays!!!
    Last edited by isara912; 12-16-2008 at 03:26 PM.

+ 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