when to delete custom menus

J

Jan Kucera

I perform the menu cleanup during document's close event,
however the menus are explicitly saved with the document.

How can I avoid this?

Thanks, Jan.
 
J

Jonathan West

Jan Kucera said:
I perform the menu cleanup during document's close event,
however the menus are explicitly saved with the document.

How can I avoid this?

Thanks, Jan.

Are you adding your menus to the menu bar? if so, Reset the menu bar and all
your customisations will be gone and can be recreated next time.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
J

Jan Kucera

Are you adding your menus to the menu bar? if so, Reset the menu bar and
all your customisations will be gone and can be recreated next time.

Hi Jonathan. This is what I'm trying to do, but how can I avoid saving the
menus in the document during save? I use CommandBars("mymenu").Delete in the
document_close, and the menu disappears, however when I open the doc file I
see the menus are included. I need to avoid this since menus can be
recreated any time and saved holds about 7MB....
 
J

Jonathan West

Jan Kucera said:
Hi Jonathan. This is what I'm trying to do, but how can I avoid saving the
menus in the document during save? I use CommandBars("mymenu").Delete in
the document_close, and the menu disappears, however when I open the doc
file I see the menus are included. I need to avoid this since menus can be
recreated any time and saved holds about 7MB....

Did you set the CustimizationContext to the document containing the menu
immediately before deleting?

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 

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