+ Reply to Thread
Results 1 to 4 of 4

Lock Checkboxes?

  1. #1
    Registered User
    Join Date
    10-22-2009
    Location
    White Lake, Mi
    MS-Off Ver
    Excel 2003
    Posts
    6

    Lock Checkboxes?

    Hey all,

    I am wondering if there is a way to keep someone from changing the state of a checkbox (from the forms toolbar, not the control toolbox).

    Right now I have the lock and lock text boxes checked for all of the checkboxes - by going to format, protection. I know that this should only make a difference when the worksheet is protected, but it does not seem to do anything. I can't edit the text or resize the box, but I can still check/uncheck it.

    Is there any way to keep it from being checked/unchecked when the worksheet is locked? Or is there a macro I could maybe run to do this?

    I have tried searching for a while, and I have came across nothing.

    Thanks,

    Wes

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Lock Checkboxes?

    Lock the linked cell.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    10-22-2009
    Location
    White Lake, Mi
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Lock Checkboxes?

    Quote Originally Posted by shg View Post
    Lock the linked cell.
    Thanks! Worked great!

  4. #4
    Registered User
    Join Date
    08-17-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    1

    Question Re: Lock Checkboxes?

    How do you lock the linked cell? Go to "format control", "Protection" tab, and check "Locked"? This is already done by default, I still can check/uncheck the checkbox even though it has no effect and it does or links nothing.

    But I want it to prevent checking/unchecking too.

    I tried to code this way but it is not working:

    With ActiveChart.Shapes("Check Box 2").ControlFormat
    .Value = xlMixed
    .LinkedCell = Locked
    End With

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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