Hi Tracy's code seems to be better but unable to test as my machines are either or not both at the moment. Anyway she usually knows best.
If however it does not work my way (back nearly a year ago) was to issue the run /n command to register whichever version, then use createobject([Excel.Application]) then issue another run /n command to revert back. Cheers Peter -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sherrie Binder Sent: 13 August 2008 15:45 To: [email protected] Subject: RE: How to open Excel 2003 I need to know how to open it using the CREATEOBJECT command. This is what I currently use: oExcel = CREATEOBJECT([Excel.Application]) Can the version be specified in the above command? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Hart Sent: Wednesday, August 13, 2008 9:07 AM To: [EMAIL PROTECTED] Subject: RE: How to open Excel 2003 Hi Sherrie Look at http://support.microsoft.com/kb/292491 I seem to remember that I then ran "c:\program files\microsoft office\office\excel.exe" /regserver from VFP I think this is the path for office 2000 so I used the path for 2003. And then ran it again but replaced the path to the one for office 2007. Cheers Peter Hart Peter Hart Computers. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sherrie Binder Sent: 13 August 2008 15:01 To: [email protected] Subject: How to open Excel 2003 How do you programmatically open Excel 2003 when a person has both Office 2003 & Office 2007 installed? TIA, Sherrie Binder Christian Record Services for the Blind www.ChristianRecord.org *** Serving the Blind Since 1899 *** [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

