+ Reply to Thread
Results 1 to 3 of 3

Forms Control checkbox and code to unlock a cell

  1. #1
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Forms Control checkbox and code to unlock a cell

    I would like to use a Form Control checkbox to change the protection and fill color of a cell. The TRUE condition should unlock the cell and change the color to a light yellow, the FALSE condition changes things back to locked and no-fill state. I've tried a few things but mostly found that the solutions are designed for ActiveX controls and not for a Forms Control checkbox, which I need to compatibility with Apple versions of Excel.

    Any assistance with proper code would be greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Forms Control checkbox and code to unlock a cell

    Put your checkbox in your sheet, assign it to the macro "CheckboxName", then format the checkbox to link to cell A1 (for example).
    Then the code below will assign the checkbox to cell A2:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Forms Control checkbox and code to unlock a cell

    This is just what I needed, thank 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. How can I identify the underlying cell of a Forms Control Button
    By EddieN1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2013, 10:04 AM
  2. Unlock a cell based on checkbox value in another cell
    By EJohnson79 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-05-2013, 01:10 PM
  3. [SOLVED] Form Control CheckBox check/uncheck via code
    By JasonRay in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-18-2013, 02:41 PM
  4. Forms Checkbox & Linked Cell Protections
    By nsorden in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-14-2009, 12:07 PM
  5. Checkbox locked and will not unlock
    By Rmagic in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2005, 05:20 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