Note: The other languages of the website are Google-translated. Back to English
English English
  • Documents
  • Excel
  • How to show file path in title bar or toolbar in Excel?

How to show file path in title bar or toolbar in Excel?

By default, when you open a workbook, the workbook name is display in the title bar. But sometimes, you want to display the full path in the tile bar or toolbar in your Excel file. Have ever tried to deal with this problem by yourself? Today, I can introduce you some quick tricks to show full file path in the title bar or toolbar in a workbook.

Show full file path in title bar in Excel

Show full file path in toolbar in Excel

Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by
  • Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
  • More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
  • Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
  • Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
  • Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
  • Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
  • More than 300 powerful features; Works with Office 2007-2021 and 365; Supports all languages; Easy deploying in your enterprise or organization.

arrow blue right bubble Show full file path in title bar in Excel

In Excel, there is no direct way for you to display the full path in title bar, but you can apply the following simple VBA code, please do as this:

1. Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and paste the following code in the Module Window.

VBA code:display full path in title bar

Sub showCaption()
     ActiveWindow.Caption = ActiveWorkbook.FullName
End Sub

3. Then press F5 key to run this code, and the full file path is displayed in the title bar at once. See screenshot:


Note: When you rename the workbook, the path will not automatically updated, you need to rerun this code to update the path of the Excel file.

arrow blue right bubble Show full file path in toolbar in Excel

If you want to show the full path in the toolbar of your workbook, you can finish it with following steps:

1. Go to click Customize Quick Access Toolbar > More Commands, see screenshot:


2. In the Excel Options dialog, choose All Commands from the Choose commands from drop down list, and scroll down to Document Location and then click Add >> button to add this option to the Customize Quick Access Toolbar list box, see screenshot:


3. Then click OK to close this dialog, and the full file path has been displayed in the toolbar, see screenshot:


Note: This method cannot update automatically when the file is renamed, either.

Related article:

How to insert last modified date in Excel header or footer?

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than
    powerful features
    . Supports Office/Excel
    2007-2019 and 365
    . Supports all languages. Easy deploying in your enterprise or organization. Full features
    -day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by
    , and reduces hundreds of mouse clicks for you every day!
officetab bottom
Comments (6)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
The QuickToolBar Document.Fullpath Doesn't work as advertised. Is only showing root path. Does not show subfolder it is in. In this case document is on Sharepoint, and all it shows is the domain, which makes this useless.Especially since the way the document is referenced is through a map to the sharepoint. So not showing the local path, and the online path is incomplete
This comment was minimized by the moderator on the site
I tried running this and it worked the first time I ran it...closed that workbook and opened another went to run it again and got "RUNTIME ERROR 424" it was looking for a object. I have no VBA experience and am perplexed how 3 line of code can be so confusing...any ideas this is the line it was focusing on when I hit debug ActiveWindow.Caption = ActiveWorkbook.FullName
This comment was minimized by the moderator on the site
I am in Mac OS X 10.13.2. This code results in showing (almost) the entire path, but the file extension is missing. I have searched for how to turn on the file extension in the title bar, but have not found an answer yet. Other answers refer to how to show file extension in the finder window, which I have done successfully. However, Excel 2016 still won't show file extensions in the title banner. Can you please advise how to turn this on?
This comment was minimized by the moderator on the site
On Mac OS you can just right-click the file name in the title bar and get the path. That is across the OS and works in almost any application
This comment was minimized by the moderator on the site
In windows OS the file extension will be visible across the OS when Explorer->Tools->Folder Options->View->"Hide extensions for known file types" is unchecked.
In Mac OS you might need this article
This comment was minimized by the moderator on the site
how can i show the file path by default on the bottom of each & every
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL