Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Include the path or URL in a header or footer
 
Applies to
Microsoft Excel 2000

Use the following macro to add the full path or URL for a workbook to the left side of the footer:

Sub UpdateFooter()
ActiveSheet.PageSetup.LeftFooter = ActiveWorkbook.FullName
End Sub

To use this macro, save the workbook and click the worksheet where you want to add the footer before running the macro.

To add the path or URL to the right side of the footer, the left side of the header, or the right side of the header, change LeftFooter in the macro to RightFooter, LeftHeader, or RightHeader, respectively.

© 2009 Microsoft Corporation. All rights reserved.