Hi,
I have a small macro and am struggling to get it to maintain focus over the Sage 300 (2012 6.1A) application. I am just using SetForegroundWindow attached to a timer on the actual form I want at the front.
When running in the VBA editor it works ok and brings itself to the top of the editor app and gets focus when the timer fires but when running it in Accpac (just using an Accpac macro icon) it does not work. Do I need to make the Accpac VBA process active and if so then how do I go about this using VBA?
Thanks in advance.
I have a small macro and am struggling to get it to maintain focus over the Sage 300 (2012 6.1A) application. I am just using SetForegroundWindow attached to a timer on the actual form I want at the front.
When running in the VBA editor it works ok and brings itself to the top of the editor app and gets focus when the timer fires but when running it in Accpac (just using an Accpac macro icon) it does not work. Do I need to make the Accpac VBA process active and if so then how do I go about this using VBA?
Thanks in advance.