Are you sure you have the latest Service Patch for Office XP? The command you showed below works fine in VFP6 and VFP7 for Office XP.
>I can successfully automate Excel 2000 (Office 2000) from VFP6.0 but as soon as I try to automate Excel 2002 (Office 2000) VFP gives a Fatal Error: Exception Code = C0000005 at the following line.
>
>oExcel = CREATEOBJECT("Excel.Application") && Works for Excel 2000
>
>What works for Excel 2002?
>
>Is this a MDAC issue?
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi