+ Reply to Thread
Results 1 to 2 of 2

Make a cell grey and locked

  1. #1
    Registered User
    Join Date
    11-03-2009
    Location
    Dunedin, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    22

    Make a cell grey and locked

    Let's say I have A1 linked to a checkbox. If A1=TRUE I want B1 to be grey and locked. If A1=FALSE I want B1 to be white and unlocked.

    Please help. . . . thank you

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Help~!! How to make a cell grey and locked??

    Hi,

    could you please take a moment to read the forum rules and then remove the superflous words from your thread title?

    You need to link the state of the checkbox to a cell and then you can do conditional formatting of another cell based on the value in the cell linked to the check box.

    Depending on what kind of check box you have:

    Control Toolbox checkbox:
    switch on development mode, right-click the check box and select properties. In the LinkedCell property enter A1

    Form check box:
    right click the checkbox and select Format contro, go to the Control tab and enter A1 in the Cell link box

    this will now show TRUE or FALSE in A1 if the box is ticked or not.

    Use the custom format ";;;" to hide the values

    now you can conditional format another cell with

    Formula is:

    =A1

    Note that with conditional formatting you can only change the color of the cell, font, border, you can not change the protection status. That would require VBA

+ 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