Excell XP vs FoxPro 7.0 SP1

Excell XP vs FoxPro 7.0 SP1

Post by Leem » Fri, 19 Sep 2003 05:18:51

Hi S. Bouchard:

Try this syntax for Excel 2002 (XP):


I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
Purchase VFP8 here:

Keep an eye on the product lifecycle for Visual FoxPro here:
http://www.yqcomputer.com/ ;[ln];lifeprodv
- VFP5 Mainstream Support retires June 30th, 2003
- VFP6 Mainstream Support retires Sept. 30th, 2003

Excell XP vs FoxPro 7.0 SP1

Post by S. Boucher » Sat, 20 Sep 2003 03:28:12

>-----Original Message-----
confers no rights.
Thanks for helping me in this topic but i'm soory to
say that it did'nt make it!
It seems that the fox pro compiler does'nt recognize the
excell xp saveas command with it's parameters and thus
generating an unknown COM error!
In anyway, i have already tried this conmmand line
before posting and so far, it did not worked properly and
nobody seems to know the answer also!

Is there a new COM object used by Excell XP?
Like a friend of mine used to say: VERY INTRIGUING!
Let me know if you find anything else on that topic...
Thanks in advance and good try!

Sylvain Bouchard
MiaMed Technologies


Excell XP vs FoxPro 7.0 SP1

Post by Cindy Wine » Sat, 20 Sep 2003 08:48:29

The following code worked perfectly well for me using VFP7 SP1 and Office

ToFileName = "C:\MyWorkbook.xls"
oExcel = CREATEOBJECT("Excel.Application")
oExcel.ActiveWorkbook.SaveAs(ToFileName, -4143)

Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
XXXX@XXXXX.COM , www.cindywinegarden.com