I have the following code in 'ThisWorkBook'
My question is how can i add another if, to allow it to check for 1, 2, 3 or more usernames?Please Login or Register to view this content.
Kind regards!
I have the following code in 'ThisWorkBook'
My question is how can i add another if, to allow it to check for 1, 2, 3 or more usernames?Please Login or Register to view this content.
Kind regards!
Something like this, perhaps:
Please Login or Register to view this content.
I suggest you to keep a separate sheet called Users and in Column-A fill the User Names you would like to add.
Then change your below line
If Environ("USERNAME") = "user.name" Then
To
Formula:Please Login or Register to view this content.
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
Thanks, both great solutions!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks