LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Prob: Custom CommandBars and .xls Files Being Re-Opened

I've created a personal.xls that has on a worksheet the definitions of
custom commandbars. Code in the personal.xls is called from a workbook_open
event in ThisWorkbook. This code activates the worksheet and steps down
through the cells, reading and building the custom command bars.

If I open Excel directly (not double-clicking on a .xls file), the custom
commandbars are displayed fine.

If I double-click on an Excel workbook that does not contain macros, the
custom commandbars are displayed and the double-clicked workbook opens
normally.

However, if I double-click on an Excel workbook that contains macros, the
custom commadbars are displayed and Excel shows the standard "this workbook
has macros - do you want to enable them" message box. When I click on the
"enable macros" button, the workbook with macros opens, the mouse pointer
goes to the hourglass for a few seconds and then a message box pops up with
the text:

(.xls filename) is already open. Reopening it will cause changes you
made to be discarded. Do you want to reopen (.xls filename)?

where (.xls filename) in the above is the name of the .xls file that has
macros.

Clicking either the Yes or No button on that message box gives me access to
the workbook with macros, but I can't figure out why it's trying to reopen
the workbook.

For what it's worth, choosing the "Disable Macros" button on the first
warning (the one about the .xls file having macros) gives the same results.

Any help would be most appreciated! I've spent way too long on getting
custom, on-the-fly commandbars this close to working, but my .xlb file had
grown to 1.8 MB!

James Cox


 
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
Why two files opened? Lisa Excel Discussion (Misc queries) 4 September 29th 09 06:08 AM
how to log all files opened on my pc? [email protected] Excel Discussion (Misc queries) 5 June 11th 06 11:09 PM
Can custom views be opened in a worksheet by other users? DGK Excel Discussion (Misc queries) 3 March 22nd 06 05:27 PM
Custom faces for custom menus/commandbars Stu Valentine Excel Programming 1 September 17th 04 04:28 AM
Question on custom commandbars Mark Reynolds Excel Programming 3 January 23rd 04 11:55 PM


All times are GMT +1. The time now is 12:26 AM.

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

About Us

"It's about Microsoft Excel"