No need to password protect a sheet?

R

Robert Crandal

If a user tries to modify my sheet, my VBA code immediately
shows a userform which asks for a passwords to get access
to the sheet....

So, I've been thinking... would it be better to just scan the
Environ("Username") info and only automatically give access to
select users?? It saves the need of prompting for passwords
every time. Is this a reliable solution? What problems might
arise from this solution?

Thanks.
 
A

Auric__

Robert said:
If a user tries to modify my sheet, my VBA code immediately
shows a userform which asks for a passwords to get access
to the sheet....

So, I've been thinking... would it be better to just scan the
Environ("Username") info and only automatically give access to
select users?? It saves the need of prompting for passwords
every time. Is this a reliable solution? What problems might
arise from this solution?

Having to maintain a list of authorized editors might be a problem.
 
G

GS

If a user tries to modify my sheet, my VBA code immediately
shows a userform which asks for a passwords to get access
to the sheet....

So, I've been thinking... would it be better to just scan the
Environ("Username") info and only automatically give access to
select users?? It saves the need of prompting for passwords
every time. Is this a reliable solution? What problems might
arise from this solution?

Thanks.

The most reliable way is to use built-in sheet protection. If users are
not supposed to make unauthorized modifications to your sheet then
the presumed inconvenience of being prompted for a password is a mute
point, IMO.

On the other hand, using Environ to qualify logged in users for
authorization is a nice touch since you can compare that to a stored
delimited string list of usernames via the InStr() function fairly
easily. I agree with Auric_ though, that the list might be problematic
to maintain.

I implement something similar by department, where different depts in
an organization has different accessibility to the project's
features/functionality/reporting. This is handled by a startup login
prompt and all permissions are set from the start because this
determines what menus are available during the runtime. I doubt I'd
ever want to do this automatically since users can be switched at any
time. Thus, I recommend a login methodology at starup so that's out of
the way during the runtime.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion
 
R

Robert Crandal

GS said:
The most reliable way is to use built-in sheet protection. If users are
not supposed to make unauthorized modifications to your sheet then
the presumed inconvenience of being prompted for a password is a mute
point, IMO.

On the other hand, using Environ to qualify logged in users for
authorization is a nice touch since you can compare that to a stored
delimited string list of usernames via the InStr() function fairly
easily. I agree with Auric_ though, that the list might be problematic
to maintain.


We only have two supervisors who will have special editing
privileges. All other users will have very limited privileges to the
workbook. So, in my case, the list of users to maintain will always
be very small... but ya, I agree with you and Auric that if my list
of users was large and non-static, then maintaining a user
list would be problematic.

Thanks for the ideas Auric and GS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top