+ Reply to Thread
Results 1 to 3 of 3

VBA code needed to stop people selecting locked cells.

  1. #1
    Registered User
    Join Date
    08-01-2011
    Location
    Cardiff, Wales
    MS-Off Ver
    Excel 2010
    Posts
    18

    VBA code needed to stop people selecting locked cells.

    Hi guys,

    I've created a dashboard where only unlocked cells can be selected, using the Review - Protect Sheet menu option and unticking the Select Locked Cells option at the top of the list. This works perfectly on mine, but when I open it up on someone elses PC they are able to select the locked cells. It's still protected, so they can't delete anything, but I want them to only select the cells that I allow. Does anyone have any code that will run automatically when aomeone else oprns the dashboard and remove the tick in the box for all sheets?

    Cheers,

    Jed.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: VBA code needed to stop people selecting locked cells.

    ActiveSheet.EnableSelection = xlUnlockedCells

  3. #3
    Registered User
    Join Date
    08-01-2011
    Location
    Cardiff, Wales
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: VBA code needed to stop people selecting locked cells.

    Perfect

+ 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