Select fld1, LEFT(memofld+space(254),254) as fld2 FROM table into cursor forexcelcopy Select forexcelcopy COPY TO excelfilename tyep XL5.2) If that is not possible, create an active x excel object. Write to the sheet thus created one cell at time. The following is example of code that simply creates an instance of excel, writes to one cell, saves the sheet and closes the instance. Given this, you ought to be able to figure out how to get any data you want into any place in Excel you want. This the ultra-minimal command set; this does not even scratch the surface of what you can do with an Excel instance in any program that can access active-x servers...
public go_excel go_excel=CreateObject("excel.application") y=go_excel.workbooks.add y.sheets(1).name="gar5" go_excel.sheets(1).name="gar5" go_excel.sheets(1).cells(3,4)="gar" go_excel.sheets(1).saveas("gar5") go_excel.quit() go_excel.visible=.t. RELEASE go_excelI