Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ole - excell saveas

Status
Not open for further replies.

MikeL91

Programmer
Feb 8, 2001
100
US

How do I cange my ole saveas to save as type MAC csv?

this saves as excell

oleApp = CREATEOBJECT("Excel.Application")
oleApp.Visible=.T.
oleApp.WorkBooks.Open("S:\State.Xls")
oleApp.ActiveWorkbook.SaveAs((cpath)+"state.XLS")
oleApp.Quit


thanks in advance,
Mike
 
Thanks mike,
I tried that, but it says "object "MyExcel" is not found.

I copied the text, but am not sure how to pass the filename to it. here is what I used:

oleApp = CREATEOBJECT("Excel.Application")
oleApp.Visible=.F.
oleApp.WorkBooks.Open("c:\MACBarcode\Temp.csv")
MyExcel.SaveAs.FileFormat=22 &&xlcsMac

I have to open a csv file i save from my foxpro table, so I create a file called temp.csv (my table saved type delim)

not too familiar with ole, obviously.

thanks for your help
-Mike
 
You have to use the correct name...

oleApp.WorkBooks.Open("c:\MACBarcode\Temp.csv")
oleApp.SaveAs.FileFormat=22
 
if you pln on doing more OLE programming I suggest that you look at faq184-2215 Attitude is Everything
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top