Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 2000, 2003 crashes on opening

Hi,
I have written some VBA behind an excel 2000 workbook. On some PCs, Excel
crashes when opening the workbook (it has happened with 2000 and 2003). When
I say crash, I mean the whole program crashes and the popup asking to send
info to Microsoft is displayed. I have tracked down the offending code. It is
a class module and I have simplified it so that it still replicates the
issue. The module code is:
==================================================
Option Explicit
Option Base 1

'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
''''''' TEST / RELEASE SOFTWARE
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
' Make sure that this is changed in the releas version
' so that all of the debugging is not compiled!!!
' and the error trapping is compiled!!!
#Const TEST_VERSION = False
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Dim mtOPCServerName As String

Dim mtOPCServerKey As String

Private WithEvents mOPCgrpModem As OPCAutomation.OPCGroup

Private Sub blah()
MsgBox "sdff"
End Sub
================================================== ===

There is no code anywhere else in the workbook (i.e. the class isn't even
used).

Now, the class does reference a dll, but even if that dll does not exist on
the PC, excel should not crash on opening (and it doesn't on many PCs. And on
some PCs it does crash even if the dll is registered).

Can anyone shed some light on this. I tried to contact Microsoft via their
email support, but was foiled by bureacracy.

Thanks
Kalvin

Finally, the really dumb thing with it is this: I can fix the issue by
opening a new sheet, drawing a button on the sheet and then opening the
"crash" workbook. After saving, I can open it on that machine for ever!
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
xls file works fine in Excel 2000 and 2007 but crashes on opening in 2003 gromit12 Excel Discussion (Misc queries) 2 November 6th 07 09:30 PM
Excel 2003 crashes when opening a file from one particular user [email protected] Excel Discussion (Misc queries) 0 May 17th 06 05:23 PM
opening word doc from excel 2000 and 2003 differences Colin C Excel Discussion (Misc queries) 0 December 11th 05 08:06 PM
Excel 2003 crashes when opening JLesemann Excel Discussion (Misc queries) 2 September 8th 05 09:57 PM
Excel 2003 crashes loading excel files created Excel 2000 Jeff Lewin Australia Excel Discussion (Misc queries) 0 June 27th 05 04:20 AM


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