+ Reply to Thread
Results 1 to 6 of 6

Locking Form Controls (Options Button) Excel 2010

  1. #1
    Registered User
    Join Date
    03-12-2012
    Location
    US
    MS-Off Ver
    2007, 2010
    Posts
    43

    Locking Form Controls (Options Button) Excel 2010

    I am creating a knowledge assessment form listing multiple questions that each have 2 to 4 Option Buttons representing the answers. What I would like to do is allow the user to only select the (radio) button and no other part of the Option Button (text).

    How would I achieve this?
    I have NO VBA knowledge nor code writing skills so the simpler the better.

    Currently using 2010 Excel and the 'Form Controls' not the 'ActiveX Controls'...they seem a little easier to use.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Locking Form Controls (Options Button) Excel 2010

    The way I would do this is to have no text in the option button and put the text in an adjacent cell, which would be locked and the sheet protected. You can uncheck the option to allow the user to select locked cells. If you don't have code yet, you don't need code to do this.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Locking Form Controls (Options Button) Excel 2010

    Here is a sample.

  4. #4
    Registered User
    Join Date
    03-12-2012
    Location
    US
    MS-Off Ver
    2007, 2010
    Posts
    43

    Re: Locking Form Controls (Options Button) Excel 2010

    That solution hadn't even occurred to me, simple yet effective.

    How are the properties set on the radio buttons in your example?

    I am not able to get the radio buttons on my sheet to perform as yours do in your example....

    I set the full sheet to 'locked' and the 'option buttons' to 'unlocked' and then protect the sheet with only "Select Unlocked cells" checked, but I get the "this sheet is locked"warning. I must be missing something in the properties that you have set differently.....
    Last edited by kmcbriarty; 09-24-2014 at 12:31 PM.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Locking Form Controls (Options Button) Excel 2010

    I did not link the buttons to a cell, and I am guessing you did. If you set the buttons to link to a locked cell, then you will get the warning when you click a button, because it will try to update that cell. You will have to link to an unlocked cell. If you don't want the user to access the linked cell, you could put it on another sheet and hide that sheet.

  6. #6
    Registered User
    Join Date
    03-12-2012
    Location
    US
    MS-Off Ver
    2007, 2010
    Posts
    43

    Re: Locking Form Controls (Options Button) Excel 2010

    That would make sense...Thanks Jazzer.

    Works perfectly once I reassigned the link to an unlocked cell, brilliant.

+ 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] prevent editing of button (form controls)
    By cooper72 in forum Excel General
    Replies: 1
    Last Post: 05-13-2014, 10:10 AM
  2. [SOLVED] Form Controls Option Button
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-28-2014, 01:15 PM
  3. Excel 2010; Form Controls: Assign keyboard shortcut to list box
    By DavidRoger in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2013, 10:59 PM
  4. Form with Button Controls
    By countryred in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-24-2011, 01:48 PM
  5. How do I remove a shadow from a Form Control Button in Excel 2010
    By rkjudy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2011, 02:38 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