kevin carter has brought this to us :
> hi i have a worksheet containing two columns of data
> column A = names
> column B = Team
>
> Cell k1 holds the widows log on name ie kevin
>
> Cell I1 holds the team identification ie team 1
>
> i want to read column A compare it with the name logged on
> then i want to check the team in column B against team Identification
>
> if the user name is correct and the team is correct
> open the workbook for editing
>
> if the username is correct and the team is incorrect open the
> open the book in Read Only
>
> If user name is incorrect
> open workbook Read Only
This doesn't make any sense! How can you open a workbook that's already
open?
I suggest you change your approach to using a login form [sheet] that
hides/unhides the various sheets appropriately, AND if the logged in
user is not allowed to edit then add protection to those sheets.
--
Garry
Free usenet access at
http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc