+ Reply to Thread
Results 1 to 11 of 11

Which the best solution for using Likert Scale in a VBA Form?

  1. #1
    Registered User
    Join Date
    09-19-2021
    Location
    Lisbon
    MS-Off Ver
    365
    Posts
    6

    Which the best solution for using Likert Scale in a VBA Form?

    Dear ones,
    I need to do a form where the users can answer an evaluation quizz, using a likert Scale. This scale range goes from 1 to 10, where 1 stands for Poor and 10 for Excelent. So far the solution is to use "option buttons" from the VBA toolbox. But because the quizz is big, about 80 questions where user can answer 1 of 10 options, according the Likert scale, it implies that I have to create in my form one frame with 10 buttons options per question, which means 800 buttons. This means that my VBA code for processing the user quizz answers needs to check wich of the the 10 options was selected for each question, so 800 times is checking. I guess this will have impact in VBA code performance when being executed, and also huge lines of code. I am wondering if there is better solution since the end users want to use the likert scale with VBA button option, because is easier to fill for the end user.

    So I ask you if there is any additional Controll Button of options that we can add in the VBA toolbox that overcomes this problem, and becomes easier to check the user answers. May there is a matrix of Button options, with a easier way to check the user options.

    I attach a picture of likert scale that is so easier to add in Microsoft Form or even Google Form, for you to have an idea of what I need to implement in VBA code for an Excel Form.

    Hope you can help me and thank you in advance!


    My kind regards,
    Carla Godinho
    Likert_Scale.gif

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Which the best solution for using Likert Scale in a VBA Form?

    give the attached approach a trial - it is a UserForm that generates itself based on the size of table you produce.
    You can add or remove rows from the table and the multipage form will re-size accordingly.
    type your question in column 'L' - select the page tabs and select option button.
    the table has a totalisation row at its base - presently the scoring is simply 1 to 10 in each row and a total sum of all columns.
    Code is written 'longhand' and is easily read and editable.
    Any queries post back on this site.
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  3. #3
    Registered User
    Join Date
    09-19-2021
    Location
    Lisbon
    MS-Off Ver
    365
    Posts
    6

    Re: Which the best solution for using Likert Scale in a VBA Form?

    Dear Torachan,
    Thanks a lot with fast answer and your xlsm sample. Although I did not had time to check the VBA code, I cheked que Form and the excel table, and It gives me an ideas how to solve the problem considering that I will put in a table with the results of the evaluation per participant and then generate a pivot table to sumarize the results. I would like to ask you if I can adapt your VBA code in a way that the form will have several pages, 10 questions per page instead of just one per page. So each page of the form will have 10 questions. Example: page 1, questions from 1 to 10, page 2 questions from 11 to 20, page 3, questions from 21 to 30 and so on. I guess is possible although I am still a begginer programing in VBA.


    I will let you know when I adap the code.

    Once again thak you so much!

    Kind regards,
    Carla

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Which the best solution for using Likert Scale in a VBA Form?

    it should be easy to adapt to your needs.
    if you get stuck post back on this site I will help where able.
    let the code do the summarising - saves time messing about with 'pivots'

  5. #5
    Registered User
    Join Date
    09-19-2021
    Location
    Lisbon
    MS-Off Ver
    365
    Posts
    6

    Re: Which the best solution for using Likert Scale in a VBA Form?

    Thanks for you availability, I will let you know!

  6. #6
    Registered User
    Join Date
    09-19-2021
    Location
    Lisbon
    MS-Off Ver
    365
    Posts
    6

    Re: Which the best solution for using Likert Scale in a VBA Form?

    Dear Torechan,
    Just to let you know that I was able to adapt my cod to use Likert scale for several questions, each group of questions in different pages. Thanks a lot!

    I would like to ask you if there is any property in each "option button" that we can unselect the option button (if we press again on the "option button" that was selected).

    My next step is to garantee that the user when filling the Likert Scale form has the possibility to unselect the option button, and so not answer to specific questions (the questions are optional for answering).

    Let' imagine that the user is filling the likert scale:

    Question1: option 1 option2 option3

    Once the user select one of the 3 options buttons of the group of the question1 there no possibility to unselect the option. For example the user may want for that question not answer, so no option button will be selected.

    hope you can help me!

    My kind regards,
    Carla

  7. #7
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Which the best solution for using Likert Scale in a VBA Form?

    There is no de-select with option buttons - they allow only one selection per group.
    I have added a check-box to each group, if the check-box is un-ticked then all the option buttons in a group are set to 'false'.
    Attached Files Attached Files

  8. #8
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Which the best solution for using Likert Scale in a VBA Form?

    Add the extra highlighted line to the 'Transfer' button code.
    It will then move to any page if an error occurs.

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    09-19-2021
    Location
    Lisbon
    MS-Off Ver
    365
    Posts
    6

    Re: Which the best solution for using Likert Scale in a VBA Form?

    Thanks Tora,
    For all your help. My knowledge in VBA it is too lack for the wonderful code you did.
    I undertood your ideas, and although I cannot readapt as you did your code, as I have already many code done and the Forms. But I have the main ideas that helped me not to be stucked.

    I use a comand button instead of check box, did like this:

    Private Sub cm1_1_1_Click()
    Dim z As Integer
    For z = 1 To 10
    FormAvaliacao.Controls("op1_1_1_score" & z) = False
    Next z
    End Sub

    It is working! Thanks a lot!

    My kind regards,
    Carla Godinho
    Last edited by carlagod; 10-31-2021 at 01:03 PM.

  10. #10
    Registered User
    Join Date
    09-19-2021
    Location
    Lisbon
    MS-Off Ver
    365
    Posts
    6

    Re: Which the best solution for using Likert Scale in a VBA Form?

    Thanks Tora,
    For all your help. My knowledge in VBA it is too lack for the wonderful code you did.
    I undertood your ideas, and although I cannot readapt as you did your code, as I have already many code done and the Forms. But I have the main ideas that helped me not to be stucked.

    I use a comand button instead of check box, did like this:

    Private Sub cm1_1_1_Click()
    Dim z As Integer
    For z = 1 To 10
    FormAvaliacao.Controls("op1_1_1_score" & z) = False
    Next z
    End Sub

    It is working! Thanks a lot!

    My kind regards,
    Carla Godinho

  11. #11
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Which the best solution for using Likert Scale in a VBA Form?

    glad to help - thanks for the feed back.
    post your file if you want it updating and annotating to make the code more understandable.

+ 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. Likert-scale
    By molly78 in forum Excel General
    Replies: 14
    Last Post: 08-11-2014, 03:54 AM
  2. [SOLVED] Likert Scale Survey
    By adamheon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-12-2013, 06:00 PM
  3. Charting a likert scale
    By pmembrey in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 08-10-2012, 04:15 AM
  4. Charting a Likert-Scale, part II
    By themagicman in forum Excel Charting & Pivots
    Replies: 14
    Last Post: 04-07-2012, 09:05 AM
  5. Likert Scale Graphs
    By ranimudaly in forum Excel General
    Replies: 1
    Last Post: 08-08-2011, 10:55 AM
  6. Likert scale analysis - before and after
    By maggiec in forum Excel General
    Replies: 0
    Last Post: 05-17-2011, 06:38 PM
  7. Likert Scale Excel Template
    By davidknight in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-06-2009, 04:28 AM
  8. how do I recode a likert scale
    By merlin in forum Excel General
    Replies: 3
    Last Post: 09-26-2005, 06:05 AM

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