Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default pre-authorized to open a file without passwords?

Does anyone know if it is possible to allow predetermined users to open an
Excel file without them having to use a password?

I've password protected a file and given out the password to a select few.
Unfortunutly, some people shared the password with others making the security
somewhat pointless.

The file is already around 8MB and I've heard a lot of issues with sharing
the file (speed and size growth of file).
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default pre-authorized to open a file without passwords?

You could place this event code into a dummy workbook which the users would
open.

If not on the list of users, the dummy would close after the message box is
clicked.

Private Sub Workbook_Open()
If Environ("UserName") = "Gord" Or Environ("UserName") = "Pete" Then
Workbooks.Open Filename:= _
"C:\Program Files\Microsoft Office\Exceldata\12months.xls", _
Password:="justme"
Else
MsgBox "You are not authorized to open 12months.xls"
ThisWorkbook.Close savechanges:=False
End If
End Sub

One of the better programmers will come along and show us how to put a list of
login names into an array.


Gord Dibben MS Excel MVP

On Wed, 23 May 2007 13:52:01 -0700, CCrew2000
wrote:

Does anyone know if it is possible to allow predetermined users to open an
Excel file without them having to use a password?

I've password protected a file and given out the password to a select few.
Unfortunutly, some people shared the password with others making the security
somewhat pointless.

The file is already around 8MB and I've heard a lot of issues with sharing
the file (speed and size growth of file).


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
How secure are the file passwords? [email protected] Excel Discussion (Misc queries) 3 March 1st 07 01:16 PM
2 separate passwords (both valid) to open file regi Excel Discussion (Misc queries) 3 October 2nd 06 04:55 PM
Macro to help oepn the file without prompting fopr passwords [email protected] Excel Worksheet Functions 0 March 28th 06 12:29 AM
Excel passwords are changing when two workbooks are open. Password Excel Worksheet Functions 0 December 21st 05 04:31 PM
How many IF are authorized? Warrio Excel Worksheet Functions 3 November 7th 05 10:31 PM


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