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.
Recommended Productivity Tools for Excel
Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial
Kutools for Excel: Save 71% of your time and solve 82% Excel problems for you. 300+ advanced tools designed for 1500+ work scenario, make Excel much easy and increase productivity immediately.60-day Unlimited Free Trial
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.
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.
Recommended Productivity Tools
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 1 years agoI 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?
To post as a guest, your comment is unpublished.· 1 years agoI 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
To post as a guest, your comment is unpublished.· 4 years agoThe 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