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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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,617
Messages
6,120,541
Members
448,970
Latest member
kennimack

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