Help! My customized menu bar is gone.

S

Steve C

Hi experts,
I have an Excel application with customized menu bar for
users to perform various tasks. Yesterday, one of the
users told me that when he launched Microsoft Word and
pressed the "Insert Microsoft Excel Worksheet", the
customized menu bar had gone when he switched back to my
application. Thus, what he see is the normal Excel menu
and the all the tasks in the application cannot be
performed afterwards. I had tried several workbook events
to trap this situation but it didn't work.
Could anyone tell me how to tackle this problem?
Appreciate your help in advance.
 
J

JE McGimpsey

It sounds like one of your event macros hid or deleted the menu, as
simply adding a worksheet shouldn't affect toolbars. Do you have an
event macro that does this?
 
P

Paul Robinson

Hi
Did your user try saving an Excel file, then cancelled the save? This
will still run your Auto_Close sub and remove the menu bar. If that
was the problem, there is a simple workaround on Dave Walkenbach's
site (I think)

regards
Paul
 
S

Steve C

Hi JE,
you're correct. Under debug mode I found that the
Workbook_Deactivate() event in which I have codes to
delete the menu was fired. Many thanks for your advice.
 

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

Similar Threads

Question About customized menu bar 2
Excel 2003 Menu Bar and ToolBars 1
Customized menu bar 2
Worksheet Menu Bar 1
Lost my customized toolbars 2
Customized menu bar 4
Error problem 1
worksheet menu bar 2

Top