View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Bob
 
Posts: n/a
Default Multiple Application.UserNames

I am trying to have an if statement with mulitiple user names.
The current code:
If Application.UserName < "User1" Then
executes properly, but it only works for one user

I want to do something like this:
If Application.UserName < ("User1" Or "User2" Or "User3") Then
This of course is incorrect and shows an error