Here are some options:
Re: Excel Automation Thread #
1269254 Message #
1269257Re: Checking running processes Thread #
1120136 Message #
1121991Re: Multiple versions of Excel and GetObject/CreateObject Thread #
1269423 Message #
1269487You can use GETOBJECT and then check the results...
I've never known a workstation to lock up when using it, can you post your code? Checking the running processes for it might be safer...
>Before I kick off a process I need to know if there is an instance of Microsoft Excel already running. If there is I want to inform the user to shut it down before proceeding.
>
>I was thinking that GETOBJECT(,"Excel.application") might be a good way but while testing, my session of VFP locked up. Is there a Windows API that cand do this? Again, I am testing upfront as a precautionary measure, I have no desire to use an existing Excel reference - just want to have the user start with a clean slate.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"