Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Preventing Users From Locking a Shared Network Add-In File

Currently I have an Add-In with all of the code to an application that
I have about 30 users accessing randomly throughout the day. I have
password protected the code but the one major problem that I'm having
is that when I need to change the code the Add-In is usaully locked
because another user has accessed the file. Is there a way to prevent
users that are accessing the Add-In from being able to lock the file so
that I can't edit it?
Any help would be greatly appreciated.
Thank you,
James

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Preventing Users From Locking a Shared Network Add-In File



in the addin' s workbook open event
include a line

If lcase(application.username) < "james geniti" then
thisworkbook.ChangeFileAccess xlReadOnly
end if




--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


JGeniti wrote :

Currently I have an Add-In with all of the code to an application that
I have about 30 users accessing randomly throughout the day. I have
password protected the code but the one major problem that I'm having
is that when I need to change the code the Add-In is usaully locked
because another user has accessed the file. Is there a way to prevent
users that are accessing the Add-In from being able to lock the file
so that I can't edit it?
Any help would be greatly appreciated.
Thank you,
James

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Preventing Users From Locking a Shared Network Add-In File

Thanks, I'll try that.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default Preventing Users From Locking a Shared Network Add-In File

Just to add to that, to avoid an error you might like to add to that

If lcase(application.username) < "james geniti" _
and not thisworkbook.readonly then
thisworkbook.ChangeFileAccess xlReadOnly
end if

JGeniti wrote:
Thanks, I'll try that.

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
Shared workbook, on network, file lock markb72 Excel Discussion (Misc queries) 0 September 28th 07 02:40 AM
Edited links keep reverting when we save a shared network file. Michael Stabosz Excel Discussion (Misc queries) 1 November 29th 06 03:38 PM
Can the personal.xls file be shared by two or more users? ivanfloyd Setting up and Configuration of Excel 2 October 30th 06 08:43 PM
shared workbook, local temp-file and network traffic petri Excel Discussion (Misc queries) 0 September 12th 05 10:51 PM
Protect file on a shared Network drive Stuart[_5_] Excel Programming 2 July 16th 04 03:27 PM


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