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
Bookmarks