+ Reply to Thread
Results 1 to 4 of 4

Display specific worksheets when opening Workbook based on Windows credentials

  1. #1
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2016
    Posts
    140

    Display specific worksheets when opening Workbook based on Windows credentials

    Hello,

    I have two different trackers that hold information but a lot of the information is duplicated.
    One of the trackers is sent to other analysts in the department but the other isn't.

    I want to try to and merge both the trackers. Is there a way that I can display certain worksheets when the tracker is opened based on the users Windows credentails.

    So if NOT user1 then only worksheets 1 - 3 is displayed.
    Not sure if it will makes a difference but there is Win7 & Win10 users.


    Thank you in advance.

  2. #2
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Display specific worksheets when opening Workbook based on Windows credentials

    With Environ("Username")

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2016
    Posts
    140

    Re: Display specific worksheets when opening Workbook based on Windows credentials

    Hi, thanks for your quick reply.
    At the risk of looking stupid, could you please explain this code. Is the letter 'j' and the number '4' significant, does it have to be 'j' and '4'.?
    What is the second line doing.?

    (apologies if this appears twice, typed once and hasn't appeared on this feed).

    Thank you.

  4. #4
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Display specific worksheets when opening Workbook based on Windows credentials

    Just try it.

+ 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. Use windows credentials for authorization in network query table add
    By jeansboy1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-10-2016, 03:06 PM
  2. VBA: Viewable Multiple Worksheets based on "User" Credentials
    By Phereo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-13-2012, 03:30 PM
  3. Associating a workbook with Windows Credentials
    By jpcsolutions in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-14-2011, 06:05 PM
  4. Create multiple sheets in new workbook based on credentials in source workbook
    By Julesdude in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-07-2011, 10:31 AM
  5. Eliminate multiple windows when opening workbook
    By 6StringJazzer in forum Excel General
    Replies: 2
    Last Post: 03-22-2011, 01:40 PM
  6. jump to specific date in cell-range based on last opening of workbook
    By wamp in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-20-2008, 09:06 AM
  7. Replies: 0
    Last Post: 07-20-2006, 12:20 PM

Tags for this Thread

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