New bhaviour (focus related) with Application Folder files
Posted: Sun Oct 18, 2015 8:24 am
Hi all
Wondering if this rings any bells with anyone ...
I'm leaning towards my question being "has there been any recent Microsoft patches to Windows 7 / Office 2013 that have changed VBA behaviour?"
We've upgraded to 10.2.2 FP2 from 9.5.1 recently. We had a number of models in our Application Folder, that were .xls files. These have some event processing code that runs when they are open from the Application Folder (mostly cosmetic and a little bit of pre-configuration - resetting a subnm formula for example). They used to work fine in 9.5.1 and they also worked fine in 10.2.2 for a while. However, recently they've started to misbehave (scientific term!).
For example, one of the models is a checklist type of thing and people record the dates of something received. Now, when you first open it and you type something in to a cell, it overwrites the formula *and* records the entry as a value in another sheet (in another workbook). Another example is some subtle display corruption (it's almost like the top-left fixed cell has gotten displaced to somewhere else, a few lines down).
The workaround is to Ctrl-Tab to another workbook and then Ctrl-Tab back. Then the model and the code works fine. So easy enough to explain to people but don't half make your application look amateurish!
Medium term we want to replace at least some of these with more modern models (active forms and buttons) and get them on to TM1 Web but we've gotten used to these ones now. I've been through the VBA code to see if I can spot anything. I thought it might have been my code assuming an activeworkbook when it shouldn't have but there's nothing obvious. I'm also thrown by the workaround which fixes it -- surely that's not a repeatable VBA code problem then?
This was not an issue in testing and I'm 90% certain it wasn't there when we upgraded. IT controls when Windows / Office patches are downloaded and we don't get notification of them. I've had a read through the last set of Office release notes but they weren't terribly enlightening. Most of the modes are .xls (because they're old ones like I said) and we need the macros.
Thanks
Wondering if this rings any bells with anyone ...
I'm leaning towards my question being "has there been any recent Microsoft patches to Windows 7 / Office 2013 that have changed VBA behaviour?"
We've upgraded to 10.2.2 FP2 from 9.5.1 recently. We had a number of models in our Application Folder, that were .xls files. These have some event processing code that runs when they are open from the Application Folder (mostly cosmetic and a little bit of pre-configuration - resetting a subnm formula for example). They used to work fine in 9.5.1 and they also worked fine in 10.2.2 for a while. However, recently they've started to misbehave (scientific term!).
For example, one of the models is a checklist type of thing and people record the dates of something received. Now, when you first open it and you type something in to a cell, it overwrites the formula *and* records the entry as a value in another sheet (in another workbook). Another example is some subtle display corruption (it's almost like the top-left fixed cell has gotten displaced to somewhere else, a few lines down).
The workaround is to Ctrl-Tab to another workbook and then Ctrl-Tab back. Then the model and the code works fine. So easy enough to explain to people but don't half make your application look amateurish!
Medium term we want to replace at least some of these with more modern models (active forms and buttons) and get them on to TM1 Web but we've gotten used to these ones now. I've been through the VBA code to see if I can spot anything. I thought it might have been my code assuming an activeworkbook when it shouldn't have but there's nothing obvious. I'm also thrown by the workaround which fixes it -- surely that's not a repeatable VBA code problem then?
This was not an issue in testing and I'm 90% certain it wasn't there when we upgraded. IT controls when Windows / Office patches are downloaded and we don't get notification of them. I've had a read through the last set of Office release notes but they weren't terribly enlightening. Most of the modes are .xls (because they're old ones like I said) and we need the macros.
Thanks