Write to excel Template error while using the sheet name controlled by flow variable in a loop

I have been trying to use the Write to excel Template node to write each table into respective sheets by using sheet names as flow variable but each and everytime I am only able to get the data in the last sheet as each time its getting overwritten rather than appending like in normal excel writer. Is there an alternative for this so that I can get the data from each loop in respective sheets appended.