The feature described in this article is not available in versions of Excel earlier than Excel 2002. In earlier versions, the only way to duplicate this feature is with a Visual Basic for Applications macro.
Add the Path
To add the path of the workbook to the header or footer of the workbook, follow these steps:- In Excel, click Header and Footer on the View menu.
- In the Page Setup dialog box, click Custom Header or Custom Footer, depending on whether you are adding to the header or the footer.
- Place the insertion point in the header or footer section that you want: left section, center section, or right section.
- Do one of the following:
- Type the following line:&[Path]-or-
- Click the Path & File button (the fifth button from the right).
- Type the following line:
- Click OK twice to close the dialog boxes and return to the worksheet.