Can custom toolbar be non-global?

pilot

Active Member
Joined
Feb 17, 2002
Messages
345
Rephrasing yesterday's question that drew no response, can I attach a custom toolbar to a wb, making it visible and available only when that wb is open?

If not, can this be accomplished another way?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi
I'm not sure I understand you exactly?
If another workbook is activated then your workbook would have to be de-activated.
Why not place code in the workbook deactivate
event and set your bar.visible = false?
Am I misunderstanding you?

Tom
 
Upvote 0
You just need to enable it in a workbook open sub and then delete it in a beforeclose sub.
 
Upvote 0
My custom toolbar is attached to a workbook. When I share the file with other users, they see the toolbar as soon as they open the file. But they still see the toolbar after they close the file. Will the method you suggest resolve this issue? Would appreciate exact code to use in BeforeClose sub.
 
Upvote 0
This should work.
Place it in your Workbook Deactivate and in the Close or before close:

Application.CommandBars("Your CommandBar").visible = False

Hope this helps

Tom
 
Upvote 0

Forum statistics

Threads
1,214,409
Messages
6,119,339
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top