Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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

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
Excel thinks a file is ReadOnly but it is not. How to fix? Don Berman Excel Discussion (Misc queries) 1 March 27th 08 05:42 PM
Changing file from readonly Niall Excel Discussion (Misc queries) 2 July 27th 06 04:58 PM
Closing ReadOnly file using VBA acces Excel Programming 1 January 15th 04 08:59 PM
Change ReadOnly State Jos Vens Excel Programming 2 November 17th 03 10:35 PM
Opening a ReadOnly file in Excel VBA Demon Excel Programming 4 August 8th 03 04:06 AM


All times are GMT +1. The time now is 06:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"