PC Review


Reply
Thread Tools Rate Thread

Change Addin File Access to Readonly?

 
 
Emil Vogel
Guest
Posts: n/a
 
      19th Oct 2006
Hello all,

i write a Addin for network working. My problem is the first user get a
full access to the addin (the next users open the addin just in the
readonly) modus. Is tehre any possiblity to open the addin allways as
Readonly and just with a passwort you can get the full access? The
command activeworkbook.changefileaccess... doesn´t work.

thanks for your time
 
Reply With Quote
 
 
 
 
Jim Rech
Guest
Posts: n/a
 
      19th Oct 2006
>>The command activeworkbook.changefileaccess

Yes, but an add-in is never the "active" workbook. If the code is in the
add-in than use ThisWorkbook.ChangeFileAccess. Else use
Workbooks("AddinName.xla").Change...

--
Jim
"Emil Vogel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
| Hello all,
|
| i write a Addin for network working. My problem is the first user get a
| full access to the addin (the next users open the addin just in the
| readonly) modus. Is tehre any possiblity to open the addin allways as
| Readonly and just with a passwort you can get the full access? The
| command activeworkbook.changefileaccess... doesn´t work.
|
| thanks for your time


 
Reply With Quote
 
Emil Vogel
Guest
Posts: n/a
 
      24th Oct 2006
Jim Rech:
>>>The command activeworkbook.changefileaccess


Thanks you!! this works. I find a other way: Open the addin with an
other. An Say if applicarion.username = (me) then open addin, else open
addin as readonly. but i think your way is the most better way! thanks
again.


>
> Yes, but an add-in is never the "active" workbook. If the code is in

the
> add-in than use ThisWorkbook.ChangeFileAccess. Else use
> Workbooks("AddinName.xla").Change...
>
> --
> Jim
> "Emil Vogel" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> | Hello all,
> |
> | i write a Addin for network working. My problem is the first user

get a
> | full access to the addin (the next users open the addin just in the
> | readonly) modus. Is tehre any possiblity to open the addin allways

as
> | Readonly and just with a passwort you can get the full access? The
> | command activeworkbook.changefileaccess... doesn´t work.
> |
> | thanks for your time

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Registry syntax to ensure that an addin is opened readonly ? keepITcool Microsoft Excel Programming 3 30th May 2008 01:31 PM
how do i change the attribute of a readonly file to edit it? =?Utf-8?B?bWFuaXNo?= Microsoft Access 1 26th Oct 2005 12:59 AM
Folders are readonly, can't change Oyvind Roysland Windows XP General 1 31st Aug 2004 12:37 AM
change msdata:readOnly before generation keren1303@hotmail.co.il Microsoft ADO .NET 0 28th Apr 2004 03:45 PM
Change ReadOnly State Jos Vens Microsoft Excel Programming 2 17th Nov 2003 10:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:05 AM.