Change Addin File Access to Readonly?

E

Emil Vogel

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
 
J

Jim Rech

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
| 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
 
E

Emil Vogel

Jim Rech:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top