Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Password Protect a single sheet using VBA

Hello All,
Question:
How can i programmatically password protect a single password.

I want the user to be presented with an input box where they are asked to
enter a password. If the password entered is correct, then go to Sheet 1,
else display a message saying 'Incorrect Password' and return the user to the
Main Menu, preventing the user from accessing Sheet 1.

Suggestions?
--
Carlee
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Password Protect a single sheet using VBA

It is somewhat difficult to implement this, and if you truly want to
*prevent* an unauthorized user from accessing the worksheet, it's
ultimately futile. XL's internal protection is so tissue thin that
anyone with the ability to access these newsgroups can find free and
quick methods to bypass it.

You can find many suggestions in the archives - the most useful will use
event macros to hide all sheets but the Main Menu in the Before_Save
event, and call a routine/userform to input a password in the
Workbook_Open event, unhiding the sheet if the password is valid.

But again, most implementations can be bypassed in 30 seconds or so...

You're a bit better off if you use a separate workbook for your Sheet 1,
with a workbook/file password - that protection takes perhaps a minute
to bypass.



In article ,
Carlee wrote:

Hello All,
Question:
How can i programmatically password protect a single password.

I want the user to be presented with an input box where they are asked to
enter a password. If the password entered is correct, then go to Sheet 1,
else display a message saying 'Incorrect Password' and return the user to the
Main Menu, preventing the user from accessing Sheet 1.

Suggestions?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
password protect a single sheet Brian Excel Discussion (Misc queries) 4 September 16th 08 08:19 PM
password protect a single sheet Stefi Excel Discussion (Misc queries) 0 March 28th 07 01:52 AM
password protect a single sheet Stefi Excel Discussion (Misc queries) 0 March 28th 07 01:02 AM
password protect a single sheet stumac Excel Discussion (Misc queries) 0 March 28th 07 12:12 AM
How do I password protect a single tab in a worksheet in excel ? Fritz Excel Discussion (Misc queries) 4 March 6th 06 02:30 PM


All times are GMT +1. The time now is 04:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"