Menus and toolbars disappeared!!

imnie

New Member
Joined
Apr 21, 2002
Messages
22
Help!! I've set up a worksheet such that when it opens it loads a custom toolbar...it then runs through several routines associated w/a selection on the custom toolbar. The very last thing these routines do is create a new workbook and then printpreview it. This all works, except when closing out of the printpreview I noticed that the entire environment changes - only the formula entry bar is still showing. My custom tool bar even has disappeared.

Thanks for any help!!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi imnie,

Please give it a try.
Put following code on std module of new workbook, and execute this code.

<Pre>
Sub Test()
Dim myCB As CommandBar
For Each myCB In CommandBars
myCB.Enabled = Not myCB.Enabled
Next
End Sub
</pre>
 
Upvote 0

Forum statistics

Threads
1,214,629
Messages
6,120,630
Members
448,973
Latest member
ChristineC

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