Write to Spreadsheet can only create a text file with (typically)
comma or tab separated data. A spreadsheet file is a generic term. All
spreadsheets are not Excel. All spreadsheet programs are capable of
importing comma or tab separated data. If you want the ability to
automatically open Excel by double clicking a file you create, just
save the file with extension .csv. I don't think saving a text file
with the extension .xls will work. If you really need to create an
Excel file with all of the extra bells and whistles that go with that,
then you have to use ActiveX. There is the shipping examples called
Write Table To Excel. There is also the add-on <A
href="http://sine.ni.com/apps/we/nioc.vp?cid=5769&lang=US">LabVIEW
Report Generation Toolkit for Microsoft Office</A>. There have also
been hundreds of postings to this forum with Excel as the subject.
Many of those have example code. Do a search and I think you'll find
what you need.