LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Crash attempting to open Excel Add-in using .dll file comprised of VB6 code

First, did the checks I suggested previously work?

If you have set a reference in your vb6 to Excel 10, there may indeed be
problems running in XL2000. I doubt the Windows version is relevant unless
you are using some API not available in earlier versions.

I assume you have access to the vb6 project in XL2K as you say you can see
where the code fails. Why not rename a backup of the project, delete any
missing ref's set the correct ref to Excel. With Excel closed, run the
project with F5, open Excel & your file and set the newly named ref to your
vb6 project. Run the code from vba and step through. If this works, rename
as original and compile. This new dll should now also work in the later
version - probably!

Presumably you fully declared oXL as Excel.Application. Depending on what
else you are doing it might be possible to remove all ref's to Excel and
declare oXL as Object.

Regards,
Peter T

"Sirhc M" wrote in message
ups.com...
Would there be any issues if:

a) The .dll VB6 file was compiled using Excel 2002,

and

b) I'm applying the .dll for use in Windows NT / Excel 2000?



 
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
"Read Only" error when attempting to open EXCEL file Jim Excel Discussion (Misc queries) 1 January 27th 10 06:28 AM
File crash when I try to open GOH Excel Discussion (Misc queries) 0 May 21st 08 02:40 PM
Word and Excel crash when I try to open a folder to get to a file DGD41 Excel Discussion (Misc queries) 7 April 15th 06 09:14 PM
"Frontpage " message appears on attempting to open excel stewart reid Excel Discussion (Misc queries) 1 September 14th 05 04:32 PM
stubborn Excel crash when editing code with code, one solution Brian Murphy Excel Programming 0 February 20th 05 05:56 AM


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