I always use this include file. (I made it)
With this you can
Open excel RUN abre_exel.
Close comunications RUN cierra_excel.
send data RUN pinta('text', reng, col).
adjust to lansdscape RUN acuesta.
change format, colors, borders, pagebreak, underline, delete a col, delete a row, change columns size, change margen, .... and some useful routines
Mrobles