VBA API Changes for Excel 64 bit?
Posted: Fri Mar 29, 2019 4:40 pm
Hi all,
Our company has decided to roll out 64bit Excel on us with minimal advance notice (yay us!).
So, I've got a brand new test PC and installed Office 64bit on it. I also installed the TM1 Perspectives 64 bit addin. So far so good, I can connect to the server, run reports and so on. Testing is ongoing but I've just spent a day on something and not gotten anywhere so hoping someone else can point me in the right direction.
We have some Excel models that use the TM1 API in VBA to fire off some TI processes. I can't make these run now under 64bit. I've put "PtrSafe" in all the declarations and they compile fine. It still runs in the 32bit version after this.
When I step through the code it's working fine until it calls TM1SystemServerHandle (hUser, sServer). On this line, Excel just crashes, every time.
There *are* values for hUser and sServer. I believe this means the API is connected / working because API calls were used earlier to get a user handle.
Anyone else come across this? Any suggestions?
Our company has decided to roll out 64bit Excel on us with minimal advance notice (yay us!).
So, I've got a brand new test PC and installed Office 64bit on it. I also installed the TM1 Perspectives 64 bit addin. So far so good, I can connect to the server, run reports and so on. Testing is ongoing but I've just spent a day on something and not gotten anywhere so hoping someone else can point me in the right direction.
We have some Excel models that use the TM1 API in VBA to fire off some TI processes. I can't make these run now under 64bit. I've put "PtrSafe" in all the declarations and they compile fine. It still runs in the 32bit version after this.
When I step through the code it's working fine until it calls TM1SystemServerHandle (hUser, sServer). On this line, Excel just crashes, every time.
There *are* values for hUser and sServer. I believe this means the API is connected / working because API calls were used earlier to get a user handle.
Anyone else come across this? Any suggestions?