+ Reply to Thread
Results 1 to 8 of 8

disable reference ability

  1. #1
    Registered User
    Join Date
    06-28-2011
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010, Excel 2011 for mac
    Posts
    82

    disable reference ability

    Hi!

    Is there a way to disable the ability to reference across worksheets? So that certain worksheets can only fill in text and numbers and not reference calls sucha as +sheet1!A1

    regards,
    Kbka

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: disable reference ability

    Hi try this code in module of worksheet
    Please Login or Register  to view this content.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Registered User
    Join Date
    06-28-2011
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010, Excel 2011 for mac
    Posts
    82

    Re: disable reference ability

    That's a neet little trick. I just realized, however, that what I need is the opposite. I.e. I need to ensure that no sheet can reference a certain sheet.

    The thing is that sheet1 is confidential and hidden with a password protection. However, one can still see the contents of the sheet by using references.

    regards

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,588

    Re: disable reference ability

    If the sheet is called "Secret" then maybe:

    Please Login or Register  to view this content.

    So, if someone types in a reference to the secret sheet it will be cleared.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: disable reference ability

    kbka,

    Unfortunately, Excel is not a secure program. Even with code to remove references to Sheet1, the user would simply need to disable macros and then they could reference sheet1 again. Also, the user could reference that workbook, sheet1 from a completely different workbook altogether (it could be a brand new one they open on their own that has default settings, instead of using one with code and/or modified settings). So there really isn't a way to prevent a determined user from referencing a sheet to find out what is in it.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,588

    Re: disable reference ability

    I have to agree with TA. Even if you use the code above and other code to hide sheets and thus force people to enable macros, it is always possible to work around it.

    If the "secret" information were in a separate workbook, which was password protected and accessed via the original workbook, and thus the individual(s) doesn't know the password, you might be able to limit access.

    It's a case of putting up sufficient barriers that it stops all but the most skilled and determined user.

    Regards, TMS

  7. #7
    Registered User
    Join Date
    06-28-2011
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010, Excel 2011 for mac
    Posts
    82

    Re: disable reference ability

    Thank you.

    I'll take the security into consideration

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,588

    Re: disable reference ability

    You're welcome. Thanks for the rep.

+ 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