In fact, you may also try
1) Create a new dialog with a Path control that allow user input, and with OK and CANCEL buttons
2) Pass this Path value to a Global Variable and open a new file for the input path value upon user OK the dialog. Else, ignore the input value.
3) In your data-logging loop, Wire the path input of the Write to Spreadsheet.vi to the Global Variable in (2), set it to append file.
By now, you should have a simple working code. You can further modify the program to be more user friendly with prompts etc. upon user's click on buttons.
Hope this is still clear and sharp.
Cheers
ian.f