disabling custom menu upon closing workbook

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I disable a custom menu upon closing an excel workbook, so that it is
not available in other excel workbooks ?
 
Try this one
Sub DisableCmdBar()
dim cmb As CommandBarButton
For Each cmb In CommandBars("CIREPT_6").Controls
cmb.Enabled = false
Next ctl

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top