Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I print the workbooks full path and filename in a page header?

0
Posted

How can I print the workbooks full path and filename in a page header?

0

Amazingly, Microsoft continues to ignore what must amount to thousands of requests per year for this feature. The only way to print a workbook’s path in a header or footer is to use VBA. The best approach is to take advantage of the WorkbookBeforePrint event. For example, place the following subroutine in the code module for the ThisWorkbook object to print the workbook’s full path and filename in the left header of each sheet.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123