We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide

Setting up Filepath as a Footer in Excel 2000

Gambler
Gambler Posts: 3,402 Forumite
Part of the Furniture 1,000 Posts Name Dropper Combo Breaker
I have used an invaluable formula in Excel for many years which is the cell("filename") formula which prints the full path, filename and worksheet of the spreadsheet.

Just been speaking with a friend who has the 2003 edition and he informs me it is possible to do this as a footer in the custom footer tab.

This is not possible in 2000 but I have tried a macro I found here:

http://techrepublic.com.com/5100-1035_11-1058172.html#

Works a treat apart from one thing. It does print the path and filename but not the worksheet. The full route is important due to the complex spreadsheets that we use.

Can anybody help please?

Comments

  • Chippy_Minton
    Chippy_Minton Posts: 3,339 Forumite
    I don't have Excel 2000, but just changing the code to:

    Worksheet.PageSetup.LeftFooter = ActiveWorkbook.FullName + " " + ActiveSheet.Name

    should work.
  • Gambler
    Gambler Posts: 3,402 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Combo Breaker
    I don't have Excel 2000, but just changing the code to:

    Worksheet.PageSetup.LeftFooter = ActiveWorkbook.FullName + " " + ActiveSheet.Name

    should work.

    thanks but it's a runtime error '424' object required I'm afraid.
  • Chippy_Minton
    Chippy_Minton Posts: 3,339 Forumite
    Try:

    ActiveSheet.PageSetup.LeftFooter = ActiveWorkbook.FullName + " " + ActiveSheet.Name
  • Gambler
    Gambler Posts: 3,402 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Combo Breaker
    Try:

    ActiveSheet.PageSetup.LeftFooter = ActiveWorkbook.FullName + " " + ActiveSheet.Name


    star man, thank you !

    I do keep asking my boss to let me go on a VB course.
  • Chippy_Minton
    Chippy_Minton Posts: 3,339 Forumite
    You really want a course on Visual Basic for Applications (VBA). VBA is a version of Visual Basic integrated into Microsoft Office applications with direct access to the objects of the host application. A good way to learn VBA is to play around with the Macro recorder and look at the code it produces.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 353.8K Banking & Borrowing
  • 254.2K Reduce Debt & Boost Income
  • 455.2K Spending & Discounts
  • 246.8K Work, Benefits & Business
  • 603.4K Mortgages, Homes & Bills
  • 178.2K Life & Family
  • 260.9K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.