Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default User Password

I need to open a workbook and have it ask the user for a password. If they
know the password then they can use the workbook, however if they do not know
the password then they can only view what the workbook has in it.
The workbook has a lot of code in it and creates sheets automatically but
there will only be a couple of users that will actually enter data, the rest
will just need to view the information entered without the ability to make
any changes. Is there a way to do this when the workbook opens?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 149
Default User Password

XL2003: FileSaveAsToolsMenuGeneralOptions
Allows you to enter a password to open and, optionally, a password to modify
(i.e., if opened, it can't be saved unless the modify password is known).

However, this may not do exactly what you wish: your code will still run,
adding sheets that the user won't be able to save.

Consider asking the user for a password when the workbook opens. Don't let
your code run and cancel Workbook_Save if that password is not supplied.

There are also methods to password protect individual worksheet elements:
ToolsProtection

HTH,

"jnf40" wrote in message
...
I need to open a workbook and have it ask the user for a password. If they
know the password then they can use the workbook, however if they do not
know
the password then they can only view what the workbook has in it.
The workbook has a lot of code in it and creates sheets automatically but
there will only be a couple of users that will actually enter data, the
rest
will just need to view the information entered without the ability to make
any changes. Is there a way to do this when the workbook opens?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default User Password


Why don't you just use excells own password protection, Save your
workbook using "Save As"
any name but before you do click on the dropdown with the titled Tools
in the save as dialog box,
choose "general options" click the read only recommend and add a
password to modify!

Now when they try to open the workbook they will need a password to
change anything or
they can view it "Read Only"

Regards,
Simon


--
Simon Lloyd
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
User Name/Password Gordon[_15_] Excel Programming 0 January 17th 07 04:09 PM
Excel to have User Name and Password? [email protected] Excel Programming 7 January 13th 07 02:08 AM
Multiple user password Pmcn Excel Programming 2 December 28th 05 06:22 PM
IE User Name and Password message box James W.[_2_] Excel Programming 3 December 28th 04 04:40 AM
Script user id and password Steph[_3_] Excel Programming 4 November 23rd 04 09:29 PM


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