+ Reply to Thread
Results 1 to 3 of 3

Select one checkbox and deselect all for each question

  1. #1
    Registered User
    Join Date
    06-14-2014
    Posts
    7

    Post Select one checkbox and deselect all for each question

    Dear Experts,

    I not familiar with the VBA and I want to learn how to to this using checkbox instead option button. I also want to learn hoe to do macro for each question as well.

    Attached my file here and hope expert can amend it for my reference.

    Your help will be highly appreciated.

    Thank you very much!!Book1.xlsx

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Select one checkbox and deselect all for each question

    It would be better to use ActiveX Optionbuttons and give each optionbutton question the same groupname. (Right-click on the optionbutton and select Properties and change Groupname. E.g. GroupApples or GroupQ1)

    Then each group can only have one selected.

    Optionbuttons, by design, are mutually INclusive, while checkboxes are mutually EXclusive. (You can search for those terms and read a lot on the subject.)

    If you need help storing the answers after the questionnaire, then post back.
    David
    (*) Reputation points appreciated.

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Select one checkbox and deselect all for each question

    duplicate to http://www.excelforum.com/excel-prog...-question.html.
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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. [SOLVED] Checkbox to deselect another checkbox, shorter code
    By JamesT1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2013, 09:59 AM
  2. Select/Deselect All in Pivot table row
    By j-dawg in forum Excel General
    Replies: 1
    Last Post: 02-25-2009, 11:25 AM
  3. How to select / deselect series in chart by VBA?
    By pninja005 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2006, 06:11 AM
  4. [SOLVED] How to select and deselect rows in Excel
    By Gallant in forum Excel General
    Replies: 2
    Last Post: 07-04-2005, 04:05 PM
  5. [SOLVED] How can I select / deselect columns for printing
    By TomH in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2005, 04:06 PM

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