Disappearing Personalised settings

J

JGGS

Hi

In Excel 03, I have created a number of personalized toolbars, which have
Excel buttons on them as well as macro buttons. My problem is that these
personalized buttons and toolbars disappear in certain circumstances. It may
be connected with the fact that sometimes I open two sessions of Excel at
the same time, or that I am on a company network. Whatever is the reason all
my personalized Excel settings disappear for no apparent reason.

I would appreciate if anyone out there could offer a suggestion for the
cause of this and hopefully also a way of resolving it.

Thanks a lot in advance.


Jay.
 
J

john

try adding these events in to Thisworkbook:
Hopefully, should ensure your custom toolbars are visible when workbook
activated & hide them when you switch windows.

Private Sub Workbook_WindowActivate(ByVal Wn As Window)
For Each mybar In Application.CommandBars
If mybar.BuiltIn = False Then
mybar.Visible = True
End If
Next mybar
End Sub

Private Sub Workbook_WindowDeactivate(ByVal Wn As Window)
For Each mybar In Application.CommandBars
If mybar.BuiltIn = False Then
mybar.Visible = False
End If
Next mybar
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

Top