To write to an Excel workbook you need to use ActiveX. There are lots of posts in this forum on how to use ActiveX to write to Excel workbooks. Please do a search. You can also peruse the links in the
Excel thread. (Note: the Excel thread is a repository of links - do not post questions in that thread.)