Hi
1. I have the code below which works except that it keeps saving the entire workbook and not just the sheet Totals99 as Totals. Can anyone tell me why?
2. If I wanted to save the sheet Totals99 as a tab delimited, DBF, or any other data type how would I change my saveas statement?
oexcel=createobject('excel.application')
oexcel.Workbooks.open('c:\bakesale\bakesl2000.xls')
oexcel.Sheets("Totals99"
.Select
oexcel.visible=.T.
oexcel.ActiveSheet.saveas("c:\bakesale\files\Totals.xls"
oExcel.quit
release oExcel
Thanks for the help!!!
Anthony
1. I have the code below which works except that it keeps saving the entire workbook and not just the sheet Totals99 as Totals. Can anyone tell me why?
2. If I wanted to save the sheet Totals99 as a tab delimited, DBF, or any other data type how would I change my saveas statement?
oexcel=createobject('excel.application')
oexcel.Workbooks.open('c:\bakesale\bakesl2000.xls')
oexcel.Sheets("Totals99"
oexcel.visible=.T.
oexcel.ActiveSheet.saveas("c:\bakesale\files\Totals.xls"
oExcel.quit
release oExcel
Thanks for the help!!!
Anthony