You all helped me in opening a Word file in Vista so it is off the task bar.
Now I have tried for a while to open an Excel File using VFP8 and have it up
front. I have been trying most tricks with no luck.
oWORKBOOK = GETOBJECT("C:\TEST1.XLS")
oWORKBOOK.APPLICATION.VISIBLE = .T.
oWORKBOOK.WINDOWS[1].ACTIVATE()

This does open the file but it always ends up on the taskbar. How do you get
it to open up so the user can just start using it and not have to look on
the taskbar for it??
The trick you all showed me of opening word up first as 2 and then 0 worked
fine for Word but how would one go about doing this in Excel?
TonySper

Re: Open Excel file in Vista by TonySper

TonySper
Tue Oct 02 16:32:33 PDT 2007

Found how to do it. Was using Windowstate=xlMaximise and
Windowstate=xlMinimise like the macros in Excel showed. Have to use
Windowstate = 2 and then Windowstate = 1 not 0. This will bring Excel to the
front.
TonySper

"TonySper" <tsperduti@nospambellsouth.net> wrote in message
news:uSed6VIBIHA.4160@TK2MSFTNGP06.phx.gbl...
> You all helped me in opening a Word file in Vista so it is off the task
> bar. Now I have tried for a while to open an Excel File using VFP8 and
> have it up front. I have been trying most tricks with no luck.
> oWORKBOOK = GETOBJECT("C:\TEST1.XLS")
> oWORKBOOK.APPLICATION.VISIBLE = .T.
> oWORKBOOK.WINDOWS[1].ACTIVATE()
>
> This does open the file but it always ends up on the taskbar. How do you
> get it to open up so the user can just start using it and not have to look
> on the taskbar for it??
> The trick you all showed me of opening word up first as 2 and then 0
> worked fine for Word but how would one go about doing this in Excel?
> TonySper
>
>