LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Need a psswd verification form to open when the file is opened

Thanks Madiya -- I think protecting the workbook will do. Thanks for the
suggestion on protecting my VBA Project - I've done this now.

The question I still have is whether or not I can have a custom message or
if I can cusotmize the message that comes up when someone enters an invalid
password or selects the 'Cancel' button when prompted for the password.

Thanks!

Robert

"Madiya" wrote:

I think it is possible. If not fully secure, security can be enhanced
to some extent. Or for that reason, security is always too week in
excel and any password can be cracked. Many code snippets and softwares
are available on net for free of cost. So the best thing is not to rely
on the excel security. Having said that, here is the solution.


While absolute protection may not be available, try putting a dummy
sheet with instructions on how to enable macros to access the file.
Hide all the sheets except dummy (xlveryhidden) in "before close"
event.
In workbook open event, check and verify the password. Depending on
password, make all the relavent sheets visible and hide
(xlveryhidden) the dummy sheet. This way if macro is disabled, your
data sheets will remain hidden and if macro is enabled, data sheets
will be displayed. Be sure to password protect your VBA Project also
along with checking the "Lock project for viewing" so that even after
getting access to sheets with proper passwords, one can not see the
others passwords.

Hope this is of some help.

Regards,
Madiya


 
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
Open Form when file opened Dana Excel Discussion (Misc queries) 2 July 25th 08 04:36 PM
Form to open when workbook is opened Dana Excel Worksheet Functions 2 November 27th 07 12:27 AM
Can't open a file I just opened the day before. DJ Excel Discussion (Misc queries) 0 October 28th 07 11:41 PM
cannot open the excel file, the file is already opened cannot open the excel document Excel Discussion (Misc queries) 1 May 19th 06 07:45 AM
How set file open path to filepath of file opened with Explorer ? RandyDtg1 Excel Programming 0 May 14th 04 02:05 AM


All times are GMT +1. The time now is 01:18 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"