LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Server Throws Exception on Workbook.Close

What if you run the code from Excel instead of from Word .
See what happens.

NickHK

"russian_hamlet" wrote in message
ups.com...
All the files are different. File3 contains a macro, but nothing that
should affect this.
I have tried the files in various orders ...

File Order Bombs at
1234 2
123 2
134 no bomb
1324 2
1342 2
2134 1
2413 1
4132 2
4321 1

The logic seems to be: (1) never bomb the first file, (2) bomb the
first File1 or File2 moving backwards from the end, i.e. utter rubbish.
I therefore suspect the files are up the wrong tree, so to speak. There
is nothing unusual about them, anyway.
And there is nothing obviously wrong in the code. It even works on some
(Windows 2000) machines.
I am worried that I'm perhaps not cleaning up my objects properly,
although I have stopped the code before and after each file closes and
it always gives a objExcel.Workbooks.Count of 1 and then 0 ...



 
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 throws -2147417851 (80010105) The server threw an exception. for no apparent reason Lars-Erik Aabech Excel Programming 2 September 18th 06 05:28 AM
Copy a worksheet throws "Exception from HRESULT: 0x800A03EC." i3tech Excel Programming 4 August 15th 06 01:37 PM
get_Range function throws an exception Mikil Excel Programming 0 May 25th 06 03:12 PM
Excel throws exception if cell being edited Pixeled Excel Programming 2 September 6th 05 07:24 PM
Chart.Export throws COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC. Steven Excel Programming 1 November 5th 03 06:59 PM


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