ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Multiple Workbooks Using the Same Custom Toolbar (https://www.excelbanter.com/excel-programming/431688-multiple-workbooks-using-same-custom-toolbar.html)

Ken

Multiple Workbooks Using the Same Custom Toolbar
 
I create a custom toolbar and it works fine when I open another instance of
the workbook.

When I close one of the workbooks, my toolbar is deleted. Is there a way to
make sure the toolbar does not get deleted if I have a workbook that requires
the workbook?

Thanks

Ron de Bruin

Multiple Workbooks Using the Same Custom Toolbar
 
Hi Ken

Add your code in the activate event and deactivate event of the workbook
instead of the open and beforeclose event


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Ken" wrote in message ...
I create a custom toolbar and it works fine when I open another instance of
the workbook.

When I close one of the workbooks, my toolbar is deleted. Is there a way to
make sure the toolbar does not get deleted if I have a workbook that requires
the workbook?

Thanks


Ken

Multiple Workbooks Using the Same Custom Toolbar
 
Hi Ron,

I'll give that a try and see how it goes.

Ken


"Ron de Bruin" wrote:

Hi Ken

Add your code in the activate event and deactivate event of the workbook
instead of the open and beforeclose event


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Ken" wrote in message ...
I create a custom toolbar and it works fine when I open another instance of
the workbook.

When I close one of the workbooks, my toolbar is deleted. Is there a way to
make sure the toolbar does not get deleted if I have a workbook that requires
the workbook?

Thanks




All times are GMT +1. The time now is 03:26 AM.

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