+ Reply to Thread
Results 1 to 2 of 2

Usermade Option Button VBA help

  1. #1
    Registered User
    Join Date
    07-27-2017
    Location
    Czech Republic
    MS-Off Ver
    2016
    Posts
    1

    Usermade Option Button VBA help

    Hi,

    I am creating a feedback survey with 10 questions which is based on option buttons.
    But I’m not in love with standard excel option buttons because I can’t really do a whole lot of formatting on them; can’t change their size/colour and basically they just look old and ugly.

    I decided to use my own shapes instead. In the following image, I’ve replaced the option buttons with shapes and have assigned a macro to each of them.

    buttons.PNG


    I have used the following code which allows me to assign value based on highlighted image.

    Please Login or Register  to view this content.
    Here is how it looks:
    buttons2.PNG

    I have the following issue:
    1) I don't know how to execute this macro multiple times for several questions on one sheet, i.e. have 10 questions where the user could select option 1-5 for each question.


    2) Once the above is working, is there a neat way to calculate average score for the 10 questions?

    I would greatly appreciate any help I can get! I have attached the xls.
    Best Regards
    Jiri
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Usermade Option Button VBA help

    Very Interesting problem.

    Took three hours for me to get it to work properly.

    The auto Open Macro creates an array "Question" that can store 2000 rows of data
    So the selected option in 2000 rows.

    Option button names must be Option1 to Option10000 in groups of 5.

    So you can use a single line of code to count your entries and to find the value.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by mehmetcik; 07-27-2017 at 05:08 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hide option buttons based on other option button
    By monfos in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2016, 05:16 PM
  2. Running the code in an option button from a seperate normal button click
    By camikhazi in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-22-2016, 10:54 AM
  3. Replies: 2
    Last Post: 08-15-2013, 12:25 PM
  4. Hide a picture button placed in all sheets using a option button (form control)
    By lagaranch in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-26-2012, 10:33 AM
  5. Userform Option Button to Show/Hide Another Option Button on same Userform
    By R_S_6 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2010, 09:44 AM
  6. Replies: 2
    Last Post: 03-27-2007, 08:30 AM
  7. Replies: 0
    Last Post: 02-20-2006, 06:00 PM

Tags for this Thread

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