Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Addin Reference crashes Excel

I have a workbook "MyWB" that calls procedures in an Addin "MyAddin". I
established the reference from MyWB to MyAddin through the Tools | References
command. The VB project name of the Addin is "My_VBA_Addin". The code in
MyWB calls functions in the Addin with the statement

My_VBA_Addin.MyProc

As originally written, everything works fine. I can open, make changes to,
and save MyWB repeatedly, invoking calls to procedures in the Addin as
necessary.

I made some updates which required changes the Addin code and then
reinstalled it in Excel. The syntax for the procedure calls has not changed.

Now the FIRST time I open MyWB, I can make changes, call procedures in the
Addin, and save my changes without any trouble. The SECOND time I open MyWB,
I get the fatal file error that begins with the message, "Microsoft Office
has encountered a problem and needs to close." (It's the dialog box that
asks permission to send the error report to Microsoft.)

It's as though MyWB will only work with the EXACT original version of
MyAddin. ANY changes I make to the Addin cause the problem (e.g., changing a
single character). If I regenerate the original version of the Addin,
everything works fine again.

I am entirely stumped. Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Addin Reference crashes Excel

Try running the code cleaner from AppsPro:

http://www.appspro.com/Utilities/CodeCleaner.htm

Good chance that willl fix it.

RBS


"PrairieHome" wrote in message
...
I have a workbook "MyWB" that calls procedures in an Addin "MyAddin". I
established the reference from MyWB to MyAddin through the Tools |
References
command. The VB project name of the Addin is "My_VBA_Addin". The code in
MyWB calls functions in the Addin with the statement

My_VBA_Addin.MyProc

As originally written, everything works fine. I can open, make changes
to,
and save MyWB repeatedly, invoking calls to procedures in the Addin as
necessary.

I made some updates which required changes the Addin code and then
reinstalled it in Excel. The syntax for the procedure calls has not
changed.

Now the FIRST time I open MyWB, I can make changes, call procedures in the
Addin, and save my changes without any trouble. The SECOND time I open
MyWB,
I get the fatal file error that begins with the message, "Microsoft Office
has encountered a problem and needs to close." (It's the dialog box that
asks permission to send the error report to Microsoft.)

It's as though MyWB will only work with the EXACT original version of
MyAddin. ANY changes I make to the Addin cause the problem (e.g.,
changing a
single character). If I regenerate the original version of the Addin,
everything works fine again.

I am entirely stumped. Can anyone help?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Addin Reference crashes Excel

Many, many thanks! CodeCleaner solved the problem.

"RB Smissaert" wrote:

Try running the code cleaner from AppsPro:

http://www.appspro.com/Utilities/CodeCleaner.htm

Good chance that willl fix it.

RBS


"PrairieHome" wrote in message
...
I have a workbook "MyWB" that calls procedures in an Addin "MyAddin". I
established the reference from MyWB to MyAddin through the Tools |
References
command. The VB project name of the Addin is "My_VBA_Addin". The code in
MyWB calls functions in the Addin with the statement

My_VBA_Addin.MyProc

As originally written, everything works fine. I can open, make changes
to,
and save MyWB repeatedly, invoking calls to procedures in the Addin as
necessary.

I made some updates which required changes the Addin code and then
reinstalled it in Excel. The syntax for the procedure calls has not
changed.

Now the FIRST time I open MyWB, I can make changes, call procedures in the
Addin, and save my changes without any trouble. The SECOND time I open
MyWB,
I get the fatal file error that begins with the message, "Microsoft Office
has encountered a problem and needs to close." (It's the dialog box that
asks permission to send the error report to Microsoft.)

It's as though MyWB will only work with the EXACT original version of
MyAddin. ANY changes I make to the Addin cause the problem (e.g.,
changing a
single character). If I regenerate the original version of the Addin,
everything works fine again.

I am entirely stumped. Can anyone help?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Addin Reference crashes Excel

If it is a large project (or maybe in any case) it is best to run after
every compile and save.
If you use it a lot it may be worth it to buy Andrew Baker's WB Rebuilder.
I think it is better than the CodeCleaner:
http://www.vbusers.com/commercial/Rebuild.asp
I use it all the time and definitely worth the £20.

RBS


"PrairieHome" wrote in message
...
Many, many thanks! CodeCleaner solved the problem.

"RB Smissaert" wrote:

Try running the code cleaner from AppsPro:

http://www.appspro.com/Utilities/CodeCleaner.htm

Good chance that willl fix it.

RBS


"PrairieHome" wrote in message
...
I have a workbook "MyWB" that calls procedures in an Addin "MyAddin". I
established the reference from MyWB to MyAddin through the Tools |
References
command. The VB project name of the Addin is "My_VBA_Addin". The code
in
MyWB calls functions in the Addin with the statement

My_VBA_Addin.MyProc

As originally written, everything works fine. I can open, make changes
to,
and save MyWB repeatedly, invoking calls to procedures in the Addin as
necessary.

I made some updates which required changes the Addin code and then
reinstalled it in Excel. The syntax for the procedure calls has not
changed.

Now the FIRST time I open MyWB, I can make changes, call procedures in
the
Addin, and save my changes without any trouble. The SECOND time I open
MyWB,
I get the fatal file error that begins with the message, "Microsoft
Office
has encountered a problem and needs to close." (It's the dialog box
that
asks permission to send the error report to Microsoft.)

It's as though MyWB will only work with the EXACT original version of
MyAddin. ANY changes I make to the Addin cause the problem (e.g.,
changing a
single character). If I regenerate the original version of the Addin,
everything works fine again.

I am entirely stumped. Can anyone help?




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
Word with embedded Excel object which has reference to addin Tom Chau Excel Discussion (Misc queries) 0 September 6th 06 02:25 AM
VBA AddIn reference in Excel X for Mac Lori Excel Programming 3 December 3rd 04 09:49 PM
addin crashes on only 1 computer Ric[_6_] Excel Programming 2 November 22nd 04 07:58 PM
Addin reference dave k Excel Programming 5 November 12th 04 03:47 PM
Solver Reference in Hidden Personal.XLS Crashes Excel 2003 [email protected] Excel Programming 1 July 12th 04 11:48 AM


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