Hi,
I have an interresting problem that puzzles me.
In the past I have created an xlsm workbook on a laptop running XP and Office 2007.
The code runs there without a problem.
My firm wants me to migrate to a new laptop running Windows 7.
Since I also will be needing Access for my work I have Office 2007 installed there with the professional edition instead of the limited version I was running on the old laptop (e.g. Enterprise lacking Access).
Now I have a strange problem with one of my xlsm workbooks (others are running fine for the moment).
When I open my BOP_2013_convertor.xlsm workbook on my new laptop, Excel crashes.
The message shown is: "Microsoft Office Excel has stopped working". And it just offers a button to close the application (recovery did not work so far).
Sometimes also the message "Automation error" is shown, no details however.
The workbook contains a Auto_open macro calling other macro's.
All VBA code is digitally signed and protected from viewing with a password.
This is what I have tried so far:
Rename Auto_open to xAuto_open -> workbook opens
Manually start xAuto_open -> Excel crashes
I replaced the signature with another signature -> same results
I unchecked the checkbox, making vba visible for everybody -> Code runs normally
I checked the box again -> Excel crashes
Step-by-step making the vba code visible revealed that the code will crash untill the vba code is visible in the VBA editor screen.
To be clear: just making the modules visible in the vba editor giving the password needed is not sufficient.
The code needs to be visible on the screen, or the protection of the project should be lowered.
Although I'm not allowed to share the code with you, I can tell you that the code is simple and straight forward.
It opens another workbook and reads and memorizes values and their new row numbers using dictionaries.
The actual converting is not yet started before Excel crashes.
I have no clue what is going on.
Any ideas what I might try to get this solved?
I have an interresting problem that puzzles me.
In the past I have created an xlsm workbook on a laptop running XP and Office 2007.
The code runs there without a problem.
My firm wants me to migrate to a new laptop running Windows 7.
Since I also will be needing Access for my work I have Office 2007 installed there with the professional edition instead of the limited version I was running on the old laptop (e.g. Enterprise lacking Access).
Now I have a strange problem with one of my xlsm workbooks (others are running fine for the moment).
When I open my BOP_2013_convertor.xlsm workbook on my new laptop, Excel crashes.
The message shown is: "Microsoft Office Excel has stopped working". And it just offers a button to close the application (recovery did not work so far).
Sometimes also the message "Automation error" is shown, no details however.
The workbook contains a Auto_open macro calling other macro's.
All VBA code is digitally signed and protected from viewing with a password.
This is what I have tried so far:
Rename Auto_open to xAuto_open -> workbook opens
Manually start xAuto_open -> Excel crashes
I replaced the signature with another signature -> same results
I unchecked the checkbox, making vba visible for everybody -> Code runs normally
I checked the box again -> Excel crashes
Step-by-step making the vba code visible revealed that the code will crash untill the vba code is visible in the VBA editor screen.
To be clear: just making the modules visible in the vba editor giving the password needed is not sufficient.
The code needs to be visible on the screen, or the protection of the project should be lowered.
Although I'm not allowed to share the code with you, I can tell you that the code is simple and straight forward.
It opens another workbook and reads and memorizes values and their new row numbers using dictionaries.
The actual converting is not yet started before Excel crashes.
I have no clue what is going on.
Any ideas what I might try to get this solved?