Zlatin:
Thanks for checking this out. Whilst it may work the way it should with Excel XP, it certainly doesn't with Excel 2000 :(
-=Gary
>>With Excel 2000 getobject will always create an instance of Excel <s>. So, it wont error, so, you can't trap for it because it wont error.
>
>Tested this with Excel XP (on Win2k) in VFP6 SP5 & VFP7 SP1:
>
>oleApp = GETOBJECT(, "Excel.Application")
>
>
>It
raises OLE error if I do not have instance of Excel.
>(As it is said in VFP Help)
>
>Will test it ASAP woth Excel 2000 and will tell you if it does not raise error and if I found a workaround.
>HTH
-=Gary