ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Closing a referenced workbook (https://www.excelbanter.com/excel-programming/349385-closing-referenced-workbook.html)

Frederick Chow

Closing a referenced workbook
 
Hi all,

I have several workbooks, all of which refer to a single Excel file
("referenced file") which contains common subroutines. I am considering the
possibility of closing the referenced file when a workbook is closed. I am
considering using the Workbook_BeforeClose event procedure, but the problem
is, at the time of closing a workbook, it still refers to that referenced
workbook and Excel just doesn't allow me to close it. Any workarounds?
Thanks for your advice in advance.

Frederick Chow




All times are GMT +1. The time now is 01:59 AM.

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