ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   hiding toolbars for my workbook only (https://www.excelbanter.com/excel-programming/340305-hiding-toolbars-my-workbook-only.html)

JNW

hiding toolbars for my workbook only
 
I know how to hide toolbars and restore them. If there a way to restore the
toobars when the user opens another workbook and hide them again when
returning to mine?

Ron de Bruin

hiding toolbars for my workbook only
 
Hi JNW

http://www.rondebruin.com/menuid.htm

Use this two events in the Thisworkbook module.

Read more about events on Chip Pearson's site.
http://www.cpearson.com/excel/events.htm

Private Sub Workbook_Activate()
'your code to change Enabled to False
'Or the name of your macro
End Sub

Private Sub Workbook_Deactivate()
'your code to change Enabled to True
'Or the name of your macro
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"JNW" wrote in message ...
I know how to hide toolbars and restore them. If there a way to restore the
toobars when the user opens another workbook and hide them again when
returning to mine?





All times are GMT +1. The time now is 06:57 AM.

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