Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel.xlb and Custom Menus

Hi,

I am having a problem with the Excel.xlb file. In the
workbook I am working on I am creating a custom MenuBar.
At the begining all my Menus and MenuItems were not
temporary except for the MenuBar. This caused the
Excel.xlb file to deflate and eventually caused Excel to
have a very slow startup time. I solved the problem by
setting all my Menus and MenuItems to be temporary.

The problem I am having right now is that for every
Popup Menu in the MenuBar Excel inserts the text [C u s t
o m P o p u p <some number] in the Excel.xlb file even
when all the menus, menu items and Menubar are temporary.
This causes the Excel.xlb file to defalte at a slow rate.

I can delete the MenuBar by putting the delete code in
the Before_Closing event handler (which would kind of
solve the problem) however, my Custom Menubar is being
belt through an Add-in. If the user had multiple workbooks
open and closes Excel then The before_closing function
will get called before any of the "Save workbooks" prompts
appear. Therefore, if the user choses to cancel the
Closing of Excel by selecting the cancel option on
the "Save" dialog then Excel and that workbook would
remain open however, the menubar would be deleted.

Is there a way to get rid off the text [C u s t o m P o p
u p <some number] in the excel.xlb file? By the way this
problem occurs on both Excel 2000 and Excel 2002
(Excel10.xlb)

---------------------
Taher Baderkhan
Consultant
Random Walk Computing.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Excel.xlb and Custom Menus

Taher,

I think you've used DEflate where you mean INflate.

A very effective if somewhat drastic means to reset the xlb
is to delete it from an explorer window. On startup Excel
will create a nice clean excelX.xlb


But note:
Instead of DELETING standard menu's you should set the VISIBLE property
of the BAR or CONTROL to False.

Then, when your custom bars and controls are added as temporary, you
shouldn't have any more problems.

You may have to look at BAR's Protection property, as this may prevent
changes to the commandbar and its controls)

There's also a Global customization flag!
Commandbars.DisableCustomize

suc6...


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Taher Baderkhan" wrote:

Hi,

I am having a problem with the Excel.xlb file. In the
workbook I am working on I am creating a custom MenuBar.
At the begining all my Menus and MenuItems were not
temporary except for the MenuBar. This caused the
Excel.xlb file to deflate and eventually caused Excel to
have a very slow startup time. I solved the problem by
setting all my Menus and MenuItems to be temporary.

The problem I am having right now is that for every
Popup Menu in the MenuBar Excel inserts the text [C u s t
o m P o p u p <some number] in the Excel.xlb file even
when all the menus, menu items and Menubar are temporary.
This causes the Excel.xlb file to defalte at a slow rate.

I can delete the MenuBar by putting the delete code in
the Before_Closing event handler (which would kind of
solve the problem) however, my Custom Menubar is being
belt through an Add-in. If the user had multiple workbooks
open and closes Excel then The before_closing function
will get called before any of the "Save workbooks" prompts
appear. Therefore, if the user choses to cancel the
Closing of Excel by selecting the cancel option on
the "Save" dialog then Excel and that workbook would
remain open however, the menubar would be deleted.

Is there a way to get rid off the text [C u s t o m P o p
u p <some number] in the excel.xlb file? By the way this
problem occurs on both Excel 2000 and Excel 2002
(Excel10.xlb)

---------------------
Taher Baderkhan
Consultant
Random Walk Computing.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel.xlb and Custom Menus

Commandbars.Disablecustomize

must have been added in xl2002 or later - don't see it in xl2000.

--
Regards,
Tom Ogilvy

"keepitcool" wrote in message
...
Taher,

<snip

There's also a Global customization flag!
Commandbars.DisableCustomize

suc6...


keepITcool



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Menus and Toolbars TedZee Excel Discussion (Misc queries) 1 July 6th 07 12:16 AM
Excel 2007 - Custom menus is missing! Søren Thade Petersen Excel Discussion (Misc queries) 3 July 11th 06 01:59 AM
Please Help Me with Custom menus Mr BT Excel Worksheet Functions 7 July 4th 06 05:15 PM
Copy Excel Custom Menus to New Computer Iain Sloan Excel Discussion (Misc queries) 4 January 13th 05 06:45 PM
Custom Menus Andy Wiggins[_2_] Excel Programming 0 September 19th 03 06:10 AM


All times are GMT +1. The time now is 02:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"