ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   disabling custom menu upon closing workbook (https://www.excelbanter.com/excel-programming/395510-disabling-custom-menu-upon-closing-workbook.html)

Woodsman

disabling custom menu upon closing workbook
 
How do I disable a custom menu upon closing an excel workbook, so that it is
not available in other excel workbooks ?

Halim

disabling custom menu upon closing workbook
 
Try this one
Sub DisableCmdBar()
dim cmb As CommandBarButton
For Each cmb In CommandBars("CIREPT_6").Controls
cmb.Enabled = false
Next ctl

End Sub
--
Regards,

Halim



"Woodsman" wrote:

How do I disable a custom menu upon closing an excel workbook, so that it is
not available in other excel workbooks ?



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

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