I am testing an application developed using VB6 on a computer with Windows 7. That application uses AppActivate in order to activate MS Excel so the user can select a cell and then go back to my application. The problem is with Windows 7, because AppActivate keeps Excel flashing in the task bar and the expected behavior was that the Excel main window became the top window with the focus on it. The same code works as expected with Windows XP.

Does anybody know if there is a workaround for Windows 7?

Thank you in advance for your help.