ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Open Referenced Add-In Worked as Read Only (https://www.excelbanter.com/excel-programming/431440-open-referenced-add-worked-read-only.html)

Ryan H

Open Referenced Add-In Worked as Read Only
 
I have Workbook A that references code in Workbook B that is saved as an
add-in. Both workbooks are saved on our server. When the user opens
Workbook A, Workbook B opens automatically in the back ground because it is
saved as an add-in. Is there a way to have Workbook B open as Read-Only
automatically? This would help me, because sometimes I need to debug the
add-in and save changes. If any of the sales people are using the workbook B
then I can't save it to the orginal file, because it is read only. Any ideas?
--
Cheers,
Ryan

Peter T

Open Referenced Add-In Worked as Read Only
 
wb.SaveAs Filename:="<pathmyAddin.xla", ReadOnlyRecommended:=True

When you programmatically open it you'll probably want to temporarily
DisplayAlerts

Anyone could of course save a copy of the file.

Regards,
Peter T


"Ryan H" wrote in message
...
I have Workbook A that references code in Workbook B that is saved as an
add-in. Both workbooks are saved on our server. When the user opens
Workbook A, Workbook B opens automatically in the back ground because it
is
saved as an add-in. Is there a way to have Workbook B open as Read-Only
automatically? This would help me, because sometimes I need to debug the
add-in and save changes. If any of the sales people are using the
workbook B
then I can't save it to the orginal file, because it is read only. Any
ideas?
--
Cheers,
Ryan





All times are GMT +1. The time now is 07:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com