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

I have an application I have written in which the first
step is to determine if a toolbar exists. If it does,
the macro makes it visible. If it doesn't, the macro
creates it and makes it visible. When the application
closes, it hides the toolbar. This all works well except
of the user quits the application without saving, Excel
crashes - every time. I have disabled the toolbar
portion of the application and the crashing goes away, so
I know it's in that area, but I don't understand why it
is causing the crashing.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Toolbars and Crashing

Hi Mick

I always create a toolbar when the file opens and delete it when I close it
In your workbook open event use this lines first to be sure that the toolbar is delete.
If Excel crash it is possible that your close event will not run that delete the toolbar

On Error Resume Next
Application.CommandBars("MyMenuBar").Delete
On Error GoTo 0

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Mick" wrote in message ...
I have an application I have written in which the first
step is to determine if a toolbar exists. If it does,
the macro makes it visible. If it doesn't, the macro
creates it and makes it visible. When the application
closes, it hides the toolbar. This all works well except
of the user quits the application without saving, Excel
crashes - every time. I have disabled the toolbar
portion of the application and the crashing goes away, so
I know it's in that area, but I don't understand why it
is causing the crashing.

Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default Toolbars and Crashing

Mick,

Take a look at J-Walk's Add-In.

http://j-walk.com/ss/excel/tips/tip90.htm

It's an example of creating a Toolbar on the fly.
I've used/modified it for my own purposes successfully
and it works great.

John


Mick wrote:

I have an application I have written in which the first
step is to determine if a toolbar exists. If it does,
the macro makes it visible. If it doesn't, the macro
creates it and makes it visible. When the application
closes, it hides the toolbar. This all works well except
of the user quits the application without saving, Excel
crashes - every time. I have disabled the toolbar
portion of the application and the crashing goes away, so
I know it's in that area, but I don't understand why it
is causing the crashing.

Any ideas?


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
excel Crashing SJMP Setting up and Configuration of Excel 3 March 6th 09 12:27 PM
csv files crashing Kelley Excel Discussion (Misc queries) 2 June 30th 08 05:16 PM
Crashing of Excel FASB Excel Discussion (Misc queries) 1 June 5th 07 04:32 PM
Help--Excel keeps crashing [email protected] Excel Discussion (Misc queries) 1 September 7th 05 10:22 PM
Book Crashing Quatre Excel Discussion (Misc queries) 0 April 18th 05 02:54 PM


All times are GMT +1. The time now is 04:37 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"