+ Reply to Thread
Results 1 to 2 of 2

Only allow certain users to view sheets

  1. #1
    Valued Forum Contributor saravnepali's Avatar
    Join Date
    01-14-2019
    Location
    Sydney Australia
    MS-Off Ver
    2010
    Posts
    447

    Only allow certain users to view sheets

    Hi,

    I have a workbook I have to share with other inside my team and outside

    I have a list of my team members as User1, User2, User3 on a sheet row

    But, I don't want certain sheets Sheet1, Sheet2 and Sheet3 to be visible to anyone outside my team.

    So, for everyone outside the team, I want to have the sheet visible property set at xlveryhidden

    Please Login or Register  to view this content.
    How do we amend a code for that
    Last edited by saravnepali; 08-20-2020 at 10:31 PM.
    If you think someone helped you, click on the "* Add Reputation" as a way to say thank you.

    If your problem is solved, go to Thread Tools and select Mark This Thread Solved

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Only allow certain users to view sheets

    it depends on how you are identifying the users. does excel have a feature in it where you can actually ASSIGN usernames to workbooks? I don't think so, or at least I've never done such a thing. what kind of data do you have in your range of user data that you speak of?

    ok, now that I've checked on it, it seems like the code application.username returns the actual USERNAME of the machine using the excel program. so, if that is the case, and the data that you have in your data list in the worksheet IS actually the names of your team members in the form of their computer USERNAMES (I think it's the environment variable), more than likely this code will work:
    Please Login or Register  to view this content.

+ 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. [SOLVED] Needing to View Those Users Who Have More Than 10
    By ioswoody in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-12-2015, 06:02 PM
  2. Replies: 12
    Last Post: 10-16-2014, 09:02 AM
  3. Allow users (with passwords) to view and edit multiple sheets per user.
    By tjwalsh626 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-17-2014, 08:38 PM
  4. Allowing users to view multiple sheets once signed in
    By helpmyexcel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2014, 05:14 PM
  5. [SOLVED] How to restrict view for users of a spreadsheet
    By Ian M in forum Excel General
    Replies: 9
    Last Post: 02-09-2014, 08:38 AM
  6. Replies: 8
    Last Post: 06-06-2013, 08:41 AM
  7. limit users view
    By aron in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-11-2010, 02:57 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