![]() |
Change Addin File Access to Readonly?
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 |
Change Addin File Access to Readonly?
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" wrote in message ... | 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 |
AW: Change Addin File Access to Readonly?
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" wrote in message ... | 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 |
All times are GMT +1. The time now is 01:40 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com