i am trying to implement function [1] which will allow to write dataframes into one excel file (in some situations) in separate spreadsheets. In below example dataframes are