Make multiple calls to the Write to Spreadsheet File.vi in a For Loop, wiring your 3D array into the left-hand side of the loop, using auto-indexing. If you ensure that a different filename is used in each loop iteration by using the iteration counter to append a number to a base filename, you will end up with Z datafiles, each representing one slice of your X by Y by Z array.