+ Reply to Thread
Results 1 to 6 of 6

Disable user access to master sheet through doubleclicking locked linked cell

  1. #1
    Registered User
    Join Date
    10-02-2008
    Location
    Colorado
    Posts
    30

    Disable user access to master sheet through doubleclicking locked linked cell

    Hey all,

    I have a master spreadsheet that houses most of the information that remains in my control, and several other user spreadsheets that update cells from that master through links.

    I am having some problems lately with users doubleclicking the locked linked cells in their workbooks, and excel then wanting to open and give the user access to my master spreadsheet. Is there a way to disable this feature? I would like it to not even acknowledge the action if that's even possible because it confuses them as to why they are getting a prompt to open another document.

    Any thoughts?

    All systems are using '07
    Last edited by yjbrody; 02-24-2010 at 02:37 PM. Reason: Added excel version

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

    Re: Disable user access to master sheet through doubleclicking locked linked cell

    There are two ways to do this. I thought of the second one first but the first one is easier. I'll include both for completeness.

    1. Because the cells you want to protect are locked, you can simply protect the worksheets and uncheck the option that allows users to "select locked cells." However, that means that they can't select them at all, so won't be able to copy data from locked cells. If you really want to prevent this then you can also add a password.

    2. If you can install macros in the users' workbooks and require them to allow macros to run, you can use the following to allow users to select cells but disable double-clicks:

    Please Login or Register  to view this content.
    If there are multiple worksheets, this would have to be added to each one.
    Last edited by 6StringJazzer; 02-23-2010 at 06:43 PM. Reason: fixed problem in code, see comment
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-02-2008
    Location
    Colorado
    Posts
    30

    Re: Disable user access to master sheet through doubleclicking locked linked cell

    Thanks for the reply, however I don't think I have done a good enough job of explaining my problem. Let me try again. I will streamline the details, but include all relevant factors hopefully.

    I have a master workbook that I input data into. This workbook feeds info via links to several other workbooks that several users use (1 wb per user). I use this method to prevent me from having to make changes to several workbooks. Instead I change/update the cells and this info is pulled over the next time each user opens their workbook.

    The cells in the user workbooks that are linked to the master are locked and password protected. There is no need for them to be edited, nor is there a reason they would be highlighting them at all. Because of this I have also unchecked the option that you mentioned below when protecting them: select locked cells.

    Even though I have put all these protections in place I have had users inadvertantly try to edit the data in the locked protected cells that are linked back to my master, and excel assumes that you would like to access that master workbook (where the links come from) so it starts to pull up the document.

    Here's an example: Workbook A is the Master with all the data, Workbook B is the users workbook populated only with data from links to the master.
    Workbook A has info in A1. Workbook B's A1 cell is linked to Workbook A, but is locked, is non-selectable and is protected. Yet, when I doubleclick on A1 in Workbook B, excel tells me that the cell is protected, I click OK and then starts pulling up Wb A and asks if I would like to open it in read only mode.

    I don't know if it's a glitch or what because I would assume that if you go to the trouble to lock and protect a linked cell, you propably don't want users to have access to the original workbook where the linked data is coming from.

    Any further help would be appreciated.

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

    Re: Disable user access to master sheet through doubleclicking locked linked cell

    I understood your explanation perfectly, but I learned something new about Excel. I set up a prototype and was dumbfounded to find that Excel allows the user to double-click on a locked cell on a protected sheet where locked cell selection is prohibited. That does trigger it to open up the linked workbook.

    At any rate, the code above does solve this problem. However, it has to be in your users' workbooks and they have to allow macros to run.

  5. #5
    Registered User
    Join Date
    10-02-2008
    Location
    Colorado
    Posts
    30

    Re: Disable user access to master sheet through doubleclicking locked linked cell

    Quote Originally Posted by 6StringJazzer View Post
    I understood your explanation perfectly, but I learned something new about Excel. I set up a prototype and was dumbfounded to find that Excel allows the user to double-click on a locked cell on a protected sheet where locked cell selection is prohibited. That does trigger it to open up the linked workbook.

    At any rate, the code above does solve this problem. However, it has to be in your users' workbooks and they have to allow macros to run.
    Yes, it does seem odd. I will give your code a try here in a bit. Thanks for your feedback and for sticking with my problem. Have a good one!

  6. #6
    Registered User
    Join Date
    10-02-2008
    Location
    Colorado
    Posts
    30

    Re: Disable user access to master sheet through doubleclicking locked linked cell

    Quote Originally Posted by 6StringJazzer View Post

    Please Login or Register  to view this content.
    I looked at your code again and now it makes complete sense. I misread it the first time through and assumed that you were having it do something else. Sorry, I'm pretty new to this stuff. This should work perfect! thanks again 6String!

+ 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