Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jim Jim is offline
external usenet poster
 
Posts: 615
Default VBA File in EXCEL 2000 Crashes in code that I have made no changes

I have an extensive VBA Addin that I have migrated through at least 3
generations of EXCEL. On two differentl occasions recently I have tried to
make a fairly stright forward change to the code. On both occassions I have
been stumped by generating an error

"EXCEL.EXE has generated errors and will be closed by windows"

When I trace where the error is occuring it is in code that is unrelated to
the changes I am making and has previously worked fine.

when I move the code around and retype it the errors still occur.

It seems as if there is corruption in the file underneath the code.

Has anyone experienced this. Is there some way to clean up a VBA file?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA File in EXCEL 2000 Crashes in code that I have made no changes

try running Rob Bovey's free code cleaner utility

http://www.appspro.com

I suspect you will need to make the Addin a workbook before you run it.

It essentially exports all your modules and forms, close and saves the
workbook, then imports them back in.

Obviously a backup copy should be made before starting (although I
suspect/expect the addin creates one as well).

--
Regards,
Tom Ogilvy

"Jim" wrote in message
...
I have an extensive VBA Addin that I have migrated through at least 3
generations of EXCEL. On two differentl occasions recently I have tried

to
make a fairly stright forward change to the code. On both occassions I

have
been stumped by generating an error

"EXCEL.EXE has generated errors and will be closed by windows"

When I trace where the error is occuring it is in code that is unrelated

to
the changes I am making and has previously worked fine.

when I move the code around and retype it the errors still occur.

It seems as if there is corruption in the file underneath the code.

Has anyone experienced this. Is there some way to clean up a VBA file?



  #3   Report Post  
Posted to microsoft.public.excel.programming
jim jim is offline
external usenet poster
 
Posts: 19
Default VBA File in EXCEL 2000 Crashes in code that I have made no changes

I just tried Rob Bovey's code cleaner and I still have the
same problem.
-----Original Message-----
I have an extensive VBA Addin that I have migrated

through at least 3
generations of EXCEL. On two differentl occasions

recently I have tried to
make a fairly stright forward change to the code. On

both occassions I have
been stumped by generating an error

"EXCEL.EXE has generated errors and will be closed by

windows"

When I trace where the error is occuring it is in code

that is unrelated to
the changes I am making and has previously worked fine.

when I move the code around and retype it the errors

still occur.

It seems as if there is corruption in the file underneath

the code.

Has anyone experienced this. Is there some way to clean

up a VBA file?
.

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 2000 crashes when using custom views. [email protected] Excel Discussion (Misc queries) 0 September 7th 07 03:20 PM
Excel 2000 crashes when I save madthorn Excel Discussion (Misc queries) 0 June 6th 06 03:41 PM
Excel Worksheet crashes when changes are made. Alexis Excel Worksheet Functions 1 August 24th 05 03:37 PM
Excel 2000 crashes when changing fonts. Ross Excel Discussion (Misc queries) 3 January 22nd 05 12:54 AM


All times are GMT +1. The time now is 02:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"