Want custom toolbar to not be global

pilot

Active Member
Joined
Feb 17, 2002
Messages
345
Is it possible to attach a custom toolbar to a wb such that it is only visible and available when that wb is open?

If not, can that scenario be created through other means?
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Thanks Chris but I reposted earlier today and got an answer. It involved setting the "MyToolbar" visible attribute to false in the before close event.
 
Upvote 0
Hi

Pilot

Can i ask as you have a workable answer you post the feed thats answers thios so everyone can find the link (answer easy)

You have reposted, rather than stick on this feed and return to the top of the board, some guys minght no see this answer

Sure you understand... help others if you can mate!
 
Upvote 0
Good idea, Jack. Here's the boiled down version of the answer provided by TsTom and Mr Nick.

This should work.
Place it in your Workbook Deactivate and in the Close or before close:

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

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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