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: 86
Default Excel is forced to close when run a marco???

Hi

Sorry the story may seem long winded, but I'm trying to describe it
logically so the problem can be easily understood.

I have added a new menu to the toolbar at the top of Excel, and assigned a
macro (called "USLE") to it that opens a userform. It was all working fine
until I made some changes to my VBE code, and I don't know what I've done
that causes the Excel to shut when I click on my menu...

Here is what happens:
When I click on my menu, the Security Warning window prompts and I click
"Enable Macros" as usual, the workbook then opens (but NOT the userform when
it should!), and an error message prompts saying "Microsoft Office Excel has
encountered a problem and needs to close", with the "Recover my work and
restart Microsoft Office Excel" option checked.

If I click on the recovered file in the Document Recovery panel in the left
of the new Excel opened automatically, save it and close the workbook (but
keep the Excel open), then click on my menu again, the userform then opens OK
and everything is fine!

However, if I start a new Excel application and click on my menu, the same
problem happens again...

Why is this?
 
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
how do I insert forced linebreaks in cells in Excel Dean Molchovic Petersen Excel Discussion (Misc queries) 2 June 19th 09 02:35 PM
Forced new line in a cell: Excel Raqueeb Hassan Excel Discussion (Misc queries) 2 January 9th 08 01:22 AM
Forced reboots -- Making Excel save always before file close bbotz Excel Discussion (Misc queries) 2 June 12th 07 11:46 PM
Marco Run on File Close Grant Excel Programming 3 September 30th 04 06:52 PM
Forced recalculation in Excel Claude Excel Programming 1 October 16th 03 10:28 AM


All times are GMT +1. The time now is 12:41 PM.

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"