Hi S,
Perhaps you can explain abut the header and footer och your XL file as I am not aware of what these are. Perhaps add a screenshot (not containing GDPR data) of your XL and a detailed description of what you want to do?
Happy coding!
---------------
Paul
Sweden
Happy coding!
Paul, Sweden
(By all means, do not mark this as the best answer!)