All above solutions are OK when you need to export bare data into Excel, but what if you want to have ready-to-view Excel "reports" with cell formatting, page headers etc? Up to now my solution was to make a sample of the desired Excel form, save it as .XML spreadsheet, then place its content into TEXT/ENDTEXT, substitute necessary header fields through << >> with SET TEXTMERGE ON, and replicate the "details" line in a SCAN loop. Resulting .XML reports would be successfully opened by Excel as native. Of course, it eventually becomes hell of the rework when the shape of the report needs more than few minor changes. Maybe there's a more elegant way to do it?