Full Path to Workbook

by Allen Wyatt
(last updated December 17, 2016)


Becky recently updated to Excel 2016. In previous versions of the program she could display the File tab of the ribbon and then click Info to see the complete path and filename of the workbook. This was very useful for copying the information to send to a co-worker. In Excel 2016 the information isn't there any more. She wonders if there is another place to get this useful information with a single copy/paste.

Actually, the information is there, but Microsoft (as it is wont to do) changed how you access the information. Plus, they changed the precise nature of what is returned. Here's how to do it:

  1. Click the File tab of the ribbon.
  2. At the left side of the screen, click Info. (This is probably displayed by default.)
  3. Immediately under the file name is the location for the file. Left-click on this location and Excel displays a couple of choices. (See Figure 1.)
  4. Figure 1. Where Excel 2016 stores location information.

  5. Choose Copy Link to Clipboard.

If you are using a worksheet that is brand new (it hasn't been saved yet), then the above steps won't work because there is no file name or location to note.

When you paste the information from the Clipboard, you may be in for a little bit of a surprise. What you'll find is that the location is formatted as a URL. For instance, here is what I found when I copied the location of a workbook (Master Email List.xlsx) stored on my desktop:


You can, of course, remove the encoding characters in the URL and the protocol information to render a full path to the workbook. There are other ways to get the full path, however.

One alternative is to use a formula in a cell to get the desired information. Provided the workbook has been saved, this will return the desired information:


When I used this in a cell on a worksheet named "Original," here is what was returned:

C:\Users\Administrator\Desktop\[Master Email List.xlsx]Original

Obviously this returns a bit more information than just the full path name, so you'll need to (again) make some changes to the information.

Another alternative is to try this little trick:

  1. Press F12. Excel displays the Save As dialog box.
  2. Click once in the Location Bar at the top of the dialog box. Excel displays the path in which the current workbook is located.
  3. Press Ctrl+C. This copies the location to the Clipboard.
  4. Press Esc to dismiss the Save As dialog box.

You can then paste the location wherever you want, but note that it is simply the path to the folder containing the workbook; it does not include the workbook name.

Another alternative is to add a tool to the Quick Access Toolbar:

  1. Display the Excel Options dialog box. (In Excel 2007 click the Office button and then click Excel Options. In Excel 2010 and later versions, display the File tab of the ribbon and then click Options.)
  2. At the left side of the dialog box click Customize (Excel 2007) or Quick Access Toolbar (Excel 2010 or later versions). (See Figure 2.)
  3. Figure 2. The Quick Access Toolbar area of the Excel Options dialog box.

  4. Use the Choose Commands From drop-down list to choose All Commands.
  5. In the list of commands, choose Document Location.
  6. Click the Add button. The command is copied to the right side of the screen.
  7. Click OK.

Now, your QAT includes a text box that contains the full path for the current workbook. You can click once in the text box, press Ctrl+A to select the path, and press Ctrl+C to copy it to the Clipboard.

There is one caveat to using the Document Location tool. If you save a new workbook or use Save As to save the current workbook to a new name, you'll need to make an application other than Excel active for a moment (just click the other application's window to give it focus) and then come back to Excel. This causes Excel to update whatever is in the Document Location text box to the correct location.

Finally, if you are comfortable with using the Visual Basic Editor, you could follow these steps:

  1. Press Alt+F11. Excel displays the Visual Basic Editor.
  2. Press Ctrl+G. Excel displays (if necessary) and activates the Immediate window.
  3. Type "? activeworkbook.fullname" (without the quote marks) and press Enter. VBA displays the full path to the current workbook.
  4. Highlight the full path name and press Ctrl+C.
  5. Press Alt+Q to close the Visual Basic Editor.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13504) applies to Microsoft Excel 2016.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...


Understanding Lists

When designing documents there are two types of lists commonly used: numbered lists and bulleted lists. This tip introduces ...

Discover More

Selecting Text in Linked Text Boxes

Text boxes are often used as design elements in a document layout. If you have linked text boxes, you may have noticed that ...

Discover More

Fonts Unavailable in Word

If you have some fonts that don't show up as available in Word, their exclusion can be confusing. Here's a discussion of why ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

Stopping Date Parsing when Opening a CSV File

Excel tries to make sense out of any data that you import from a non-Excel file. Sometimes this can have unwanted results. ...

Discover More

Avoiding Scientific Notation on File Imports

When importing information from a CSV file, you may get unintended results from time to time. Here's how to force Excel to ...

Discover More

Error Opening Second Workbook

If you try to open a second workbook and you see an error message, it could be because of the way you are opening the ...

Discover More

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is six more than 9?

2016-12-20 06:02:59

Willy Vanhaelen

@John Finley

The question mark is an alias for debug.print. So in the immediate window
"? activeworkbook.fullname" or
"debug.print activeworkbook.fullname"
are exactly the same.

You can use the first only in the Immediate window while the second is used in Subs or Functions for evaluation purposes.

2016-12-19 11:39:38

John Finley

Last tip is a great idea, but it works better if you preface the object with Debug.Print

2016-12-19 08:18:23


I have found it much easier by adding the 'Document Location' selection to the QAT. It is right there in front of you, all the time. Just click in it, and since the file path and name are already highlighted, just hit 'Ctrl+C' and it is in the ClipBoard.

If you only need the file name, not the path, just copy the name at the end of the string. Or if just the path, only copy it from the start of the string.

2016-12-18 16:31:07

RE Harrison

To extend MW's comment, one can right click on the file name and choose "Copy as Path" which copies the whole path and filename to the clipboard, which can then be pasted in emails, hyperlinks etc. (although some (non Microsoft?) programs balk at the quotation marks that are put at the beginning and end of the path|filename). I use this all the time and it's very handy.

2016-12-18 14:10:06

David Gray

This is an outstanding summary of the many ways to coax the file name from Microsoft Excel. Except for the QAT text box, I have used every one of these methods at one time or another.

Another variation of the worksheet formula that I have used from time to time involves extracting either the sheet name or the file name from the string returned by cell("Filename"). With a little more effort, and a helping of VBA, you can even extract the path for use in other formulas. Perhaps the must immediately useful such formula makes it possible to create hyperlinks to related documents that live in the same folder as the workbook. Getting the path from a formula makes these links almost unbreakable.

2016-12-17 19:39:05


This frustrated me until I discovered that on the Info Tab, under the Properties column at the bottom you see:

Related Documents
Open File Location

Clicking on Open File Location, quickly opens the folder location in an Explorer window.

On the Home Tab of the Explorer ribbon click "Copy Path" -- it is copied to the clipboard

Or, clicking AFTER the last folder name in the navigation bar highlights the entire path, copy it and it is also on your clipboard.

No editing of a URL required either.

This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.