+ Reply to Thread
Results 1 to 3 of 3

Access Control Text List

  1. #1
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    117

    Access Control Text List

    Hello, I have a workbook which executes a task to copy some files to a users machine. I would like to allow users access to run the script by checking if their username 'Environ("USERNAME")' is listed in a text file on a server. If they are not, then the script doesn't run and pops up a message before forcing the workbook to close.

    Can anyone help me with the code to perform this task?

    Thanks,
    Tom

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Access Control Text List

    Wouldn't be simpler to password protect the workbook & only share the password with users?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    117

    Re: Access Control Text List

    Hi roy,

    I don't want to share a password, I have a list of usernames who require access so I would prefer to have these IDs in a text file that the workbook can lookup - if a user is not on the list, the code doesn't run the copy file routine.

+ 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