A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hello Robin,
Thank you for posting in this community.
I understand you encountered some problems when using VBA to replace all date fields in the header and footer with sample text.
I would like to explain we are supporting for family or consumer user to provide technical support, your issue is related to VBA which is for IT or Developer and is more appropriate to be posted in Microsoft Docs. There are more professional engineers who is familiar with VBA can provide help.
Your understanding is highly appreciated! Hope you are keeping safe and well.
Olivia - MSFT | Microsoft Community Support Specialist