Does value exist

llan_man

New Member
Joined
Nov 6, 2005
Messages
45
I have a userform where the user enters their username. I also have an admin sheet which stores all the usernames of the people who can access this model. What I am looking for is some code which will check whether the username that the user enters into the form is on the admin sheet list.

Not sure where to start....

I've tried using ISna combined with vlookup and not sure how to use Find.

Thanks

Harv
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
llan_man said:
I have a userform where the user enters their username. I also have an admin sheet which stores all the usernames of the people who can access this model. What I am looking for is some code which will check whether the username that the user enters into the form is on the admin sheet list.

Not sure where to start....

I've tried using ISna combined with vlookup and not sure how to use Find.

Thanks

Harv

=ISNUMBER(MATCH(UserName,UserList,0))+0

1 means Yes, 0 No.
 
Upvote 0

Forum statistics

Threads
1,202,901
Messages
6,052,448
Members
444,581
Latest member
naninamu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top