Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default Error when closing workbooks after running .net code

The only time i ran into this was with google desktop loaded on the pc.

known issue there and had to uninstall desktop search.

"Stefan Hojnowski" wrote:

I have written a few macros in a .NET dll which exposes functionality through
COM. I am passing the ActiveWorkbook object to the dll function which then
does a bunch of things based on the data in one of the worksheets and any
code modules in the VBProject. With some worksheets, after the macro has run
successfully and I close the workbook the project is still open in the VBIDE.
When this occurs an Excel crashes after I quit the application and generates
an error report.

The error signature is:
AppName: excel.exe AppVer: 9.0.0.8924 ModName: vbe6.dll
ModVer: 6.4.99.69 Offset: 0009a0ed

I have tried everything I can possibly think of to work around this issue
but it seems that if I so much as touch a .CodeModule property of a
VBComponent and/or attempt to remove a VBComponent from VBComponents I am
likely to get this issue. As I mentioned, this does not happen with every
workbook but it will happen every time or not at all for a given workbook. I
am running Excel 2000 SR-3 and Visual Basic.NET 2003. Some of the workbooks
may have been created with Excel 97, but I am unsure if there is any direct
correlation with that.

Calling System.Runtime.Interop.Marshal.ReleaseComObject before my function
returns seems to help with some, but not all workbooks.


Any help or insight into this problem would be greatly appreciated.

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
Closing workbooks w/o closing Excel Barb in MD Excel Discussion (Misc queries) 3 February 15th 10 06:42 PM
Please Help Error 400 when running tested code Ditto Excel Discussion (Misc queries) 5 October 15th 07 01:24 PM
Running a macro Upon Closing Confused Excel Fan Excel Programming 5 January 29th 05 11:08 AM
Error Message When running code but not stepping through it. Jared Excel Programming 4 November 16th 04 07:09 PM
Closing the Userform when macro is running SuperJas Excel Programming 5 December 10th 03 05:31 AM


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