Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
garyxprice
 
Posts: n/a
Default how to make an xls file allow only one user access at a time.

I have an xls file that I want to lock down and only allow one user at a time
access... I do not even want people to be able to go in with readonly....

Thanks
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

How about closing the workbook if it's opened readonly--and this'll only work if
macros are enabled!

Option Explicit
Sub auto_open()

With ThisWorkbook
If .ReadOnly = True Then
MsgBox "not available in readonly mode!"
.Close savechanges:=False
End If
End With

End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

garyxprice wrote:

I have an xls file that I want to lock down and only allow one user at a time
access... I do not even want people to be able to go in with readonly....

Thanks


--

Dave Peterson
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
Cannot access a file -- HELP Steve Excel Discussion (Misc queries) 2 June 15th 05 08:05 PM
Changing the format of an Excel output file made by Microsoft Access Amir Excel Discussion (Misc queries) 2 May 1st 05 12:57 AM
Importing Access File with Hyperlink B.C.Lioness Excel Discussion (Misc queries) 0 April 29th 05 10:13 PM
Excel user desires to learn ABC of Access Hari Excel Discussion (Misc queries) 1 December 3rd 04 02:32 AM
Network access to file - read only property AL Excel Discussion (Misc queries) 1 December 2nd 04 01:22 AM


All times are GMT +1. The time now is 02:53 PM.

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"