Consulting

Results 1 to 5 of 5

Thread: Userform/Checkboxes Formatting

  1. #1
    VBAX Regular
    Joined
    Sep 2010
    Posts
    23
    Location

    Userform/Checkboxes Formatting

    Excel 2007 - VBA - Userform
    One Answer per Question : Checkboxes

    I have a userform with 8 questions, 3 checkboxes for each question, and a total of 24 checkboxes. For each question the three available checkbox choices are YES, NO, N/A. (Please see attachment.) Is there a way so that when selecting the answer, an individual is only able to select one of the three checkboxes per question? For example: On question one > if I select "YES" as my answer then i want the userform to prevent me from being able to also select either "no" or "n/a" for that same question. This way I can ensure that only one answer is selected/submitted per question. Any suggestions are welcome!!
    (Please see attachment.)

  2. #2
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    It sounds like the UF should use Option Buttons rather than CheckBoxes.
    Put the option buttons in a frame to keep them acting as a group.

  3. #3
    VBAX Regular
    Joined
    Sep 2010
    Posts
    23
    Location
    This works. Thank you so much for your help. Any chance you can tell me how to erase the border around the frames??

  4. #4
    VBAX Expert Tinbendr's Avatar
    Joined
    Jun 2005
    Location
    North Central Mississippi (The Pines)
    Posts
    993
    Location
    Try this.

    David


  5. #5
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    Quote Originally Posted by Juicey27
    This works. Thank you so much for your help. Any chance you can tell me how to erase the border around the frames??
    The Property window shows .BorderStyle, .BorderColor, and .Caption as being among the properties of a frame.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •