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



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
XL2007: line chart lines disappear when referenced workbook is not open Jerry[_9_] Charts and Charting in Excel 1 July 25th 11 04:30 PM
Axis labels problem when referenced workbook not open... InquiringMind Charts and Charting in Excel 1 October 20th 09 03:34 PM
Shared worked very slow to open Jo Excel Discussion (Misc queries) 0 April 24th 09 04:59 AM
Sumif Error when Referenced Wkbk not open Maverick_TG Excel Discussion (Misc queries) 1 April 17th 08 06:28 PM
is it always necessary to open workbooks referenced in a formula levie Excel Discussion (Misc queries) 1 May 13th 05 12:14 AM


All times are GMT +1. The time now is 03:15 PM.

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

About Us

"It's about Microsoft Excel"