Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default How to create a PASSWORD ENTRY BOX at startup of Excel Application

I have an application that I would like to add a password entry box.
The box would appear on the screen when a workbook is opened and the
user would have to enter a password to be able to use the workbook.
The password entry box would contain two buttons:

SUBMIT - Submits the password
CANCEL - This would close the workbook without saving.

The password would be written into the workbook (most likely in the
first spreadsheet) and the user would have to enter the password that
matches. If the password is incorrect then the workbook would display
a message box with a message like, "Sorry, but you have entered an
incorrect password. Please re-enter the correct password." The user
would be able to close this message box and try re-entering the
workbook.

I would be most grateful if you could let me know what VBA code I
would need to write to accomplish the above.

Please respond via email:

Thank you so much.

Marcello
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default How to create a PASSWORD ENTRY BOX at startup of Excel Application

Hi Marcello,

Why not just save the workbook as a password-protected workbook. The
steps to do this depend on your Excel and operating system versions, but for
Excel 2000+ and Windows 2000+ choose File/Save As from the Excel menu. In
the Save As dialog select the Tools/General Options menu. In the Save
Options dialog enter a Password to open. Don't enter or select any of the
other options. Excel will prompt you to verify the password and then in will
be saved password-protected.

Once you've done this, the user will not be able to open the workbook
without knowing the password. And unlike all other password protection
options available in Excel, this one has the advantage of being truly
difficult to break.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


"Marcello do Guzman" wrote in message
...
I have an application that I would like to add a password entry box.
The box would appear on the screen when a workbook is opened and the
user would have to enter a password to be able to use the workbook.
The password entry box would contain two buttons:

SUBMIT - Submits the password
CANCEL - This would close the workbook without saving.

The password would be written into the workbook (most likely in the
first spreadsheet) and the user would have to enter the password that
matches. If the password is incorrect then the workbook would display
a message box with a message like, "Sorry, but you have entered an
incorrect password. Please re-enter the correct password." The user
would be able to close this message box and try re-entering the
workbook.

I would be most grateful if you could let me know what VBA code I
would need to write to accomplish the above.

Please respond via email:

Thank you so much.

Marcello



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
Can I protect all excel tabs in a file with one password entry? Indiana born Excel Discussion (Misc queries) 40 December 17th 09 01:54 PM
Excel or Access for Data Entry and Reporting Application Karin Excel Discussion (Misc queries) 2 October 17th 07 04:17 PM
create excel based standalone application Pete_R Excel Discussion (Misc queries) 0 December 4th 05 11:59 PM
create installer for Excel application [email protected] Excel Discussion (Misc queries) 1 January 25th 05 12:33 PM
How to password protect an application Nathan Gutman Excel Programming 3 December 4th 03 03:51 PM


All times are GMT +1. The time now is 08:48 AM.

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

About Us

"It's about Microsoft Excel"