+ Reply to Thread
Results 1 to 2 of 2

Trying to tie in a login-user/admin- and sheets that are vissible

  1. #1
    Registered User
    Join Date
    09-08-2013
    Location
    oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question Trying to tie in a login-user/admin- and sheets that are vissible

    So i'm new to VBA (sorry), i have a pretty lengthy excel sheet that perfroms alot of different calc. behind the scene. Most people don't need any access. THey just fill out the face sheet and hit a macro that will submit and print. Some need access to one sheet, and a couple need access to all of it...

    I attempted to put togather two complete different vba codes i've made/stolen and modified. The login works just fine, but i can't seem to make the sheets appear/disappear based on who logs in. Any Help would be awesome thank you.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    01-17-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Trying to tie in a login-user/admin- and sheets that are vissible

    First things to check
    Application.UserName is something that can easly be changed by user or even left blank or typed differently then in your user sheet
    so make sure to use Ucase to put all in capitals
    Please Login or Register  to view this content.
    for the first part of your code below is useless for Case "Reagent" & ase "User"
    Please Login or Register  to view this content.
    i don't know how you want the workbook to function exactly but i would protect before closing otherwise we just disable macro's and open the workbook and see everything anyway.
    and you can update your code below to do so
    Please Login or Register  to view this content.
    if you do so then below in red is not needed also

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved , to mark your thread as Solved select Thread Tools and click Mark thread as Solved.

    I can't read the mind of my wife so then I get picture but no sound .... and then I mostly get the idea, same goes here picture your outcome and I get the idea.

+ 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. Admin vs User access to Workbook with default Userform Only
    By Faustus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-08-2013, 07:53 PM
  2. Insert user's name into cell based on windows user login when a button is clicked.
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 08-16-2011, 01:08 PM
  3. User Login
    By dntel123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-12-2010, 02:52 AM
  4. USER/LOGIN to different sheets
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-09-2008, 09:41 AM
  5. find the login user and saving /login the name
    By belkin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2008, 08:24 AM

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