I have a bunch of Excel files heavy with VBA code. This Excel were created by a programmer in Excel 2010 32bit. When we upgraded to Excel 2013 64 bit in our company, these Excel files began to generate problems: we were able to fix declarations and use those files, however in repeated instances these file began to crash when enabling the macro content. Files without VBA content never crash.
I have found a workaround:
1. Open the workbook in Excel. Normally Excel will disable macros in a worksheet until you click a button to enable the macros. Do not enable the macros just yet.
2. Open the VBA editor. You can hit ALT+F11 or on the ribbon click Developer > Visual Basic
3. In the VBA editor double click your module or first module that contains your project. Add a commented line of code such as:
‘ This is a comment
Then click on the Debug menu at the top and click Compile VBA Project.
Repeat this step for each module in your workbook and then save the workbook.
4. Close the workbook and re-open it and enable the macros and test it.
However, some of the files that were recompiled keep crashing.
My question is:
-is there a viable and stable solution?
-what is in fact the source of the problem?
Bookmarks