Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Excel crashing when trying to close a workbook

This may be a long explanation, so my apologies.

I have a HUGE workbook that has 9 userforms and alot of code in it (1MB)
Going through the forms, there is one part that crashes excel.

I enter the area-office into the form which then shows the client combobox.
Select the client and the client workbook is opened in the background - the
address combobox is then shown.
Select the address and textboxes and different details from the client's
property are shown - taking data from the client workbook.

I can cancel the address, which then just shows the client name. Cancel this
and i can select a new client - the client workbook gets closed and this
works fine.
If i try to save - the code will copy the data from the textboxes to the
client workbook and then try to save and close.

The error i get is "The object invoked has disconnected from its clients".

I have tried putting option explicit at the top of every page of code and
referenced everything.

I was using Activeworkbook.close savechanges:=true
Then tried Workbooks(x).close savechanges = true
Tried to save then close seperately, but it crashed on close.
Unloaded the userform and tried to close - still crashed.

I have no idea what could be causing this.

This project is an amalgamation of a few other workbooks that i currently
use, but have been trying to combine into one. I've stepped through the code
and it does what i expect up to this point.

If anyone could offer some advice i would be grateful.

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 is crashing when making a pdf of my workbook Jewell Excel Worksheet Functions 0 August 27th 09 02:24 PM
Command Button crashing workbook? Kaval Excel Discussion (Misc queries) 1 July 15th 05 12:12 AM
Excel crashing intermittently on save or file close - caused by vba? dirt Excel Programming 2 January 6th 05 01:07 AM
Excel workbook with formulas keep crashing application George Esoimeme Excel Programming 2 June 10th 04 01:38 PM
Excel crashing when (programatically) adding past the 360th worksheet to a workbook Scott Lyon Excel Programming 2 August 14th 03 12:34 PM


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