After "XlsBuf.OpenBook" Excel Window stay minimized.
How can I activate Excel Window and bring it to my screen?
I try somwthing like:
IF XlApp.WindowState = WindowState[1] THEN //minimized
XlApp.WindowState(WindowState[2]); //normal
XlApp.WindowState(WindowState[3]); //maximized
XlApp.ShowWindowsInTaskbar(TRUE);
XlApp.Visible(TRUE);
XlApp.ActiveWindow.Activate;
But it didn't work.
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
There is a problem. This method has:
But I need XlApp to run macros in Excel. Macros have interaction with user and should return something to NAV.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
That won't work. Because after: NAV proceed with the code:
That command work only, If after NO NAV CODE.
And because NAV execute this code aftter GiveUserControl - focus bring back to NAV.
I think: there is should be some code in VBA macros that Activate this Excel file and bring it to screen.
But nothing work. :-k
http://www.mrexcel.com/forum/excel-ques ... s-top.html