Unable to use path variable to write into excel

@nikhil_benny maybe you can provide an example and a logfile about what is going on. BTW the syntax you posted above will not work since the quotation marks are not correct.