Is it possible to write data out to an ms excel file??

If so could someone post the code on how to do it?

I appreciate it.