The question is if it does make sense to directly write to a shared folder. You will always have to be sure the synchronisation is finished and no other process is interfering.
What you could do is write the excel files to a local temporary folder and then transfer the files in one go to the shared folder.