Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Word with embedded Excel object which has reference to addin | Excel Discussion (Misc queries) | |||
VBA AddIn reference in Excel X for Mac | Excel Programming | |||
addin crashes on only 1 computer | Excel Programming | |||
Addin reference | Excel Programming | |||
Solver Reference in Hidden Personal.XLS Crashes Excel 2003 | Excel Programming |