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. ...


Adding a File Path and Filename

If you need to stuff the current workbook's filename and path into a cell or a header or footer, you'll appreciate the ...

Discover More

Calculating the Last Day in a Week Number

Given a particular week number for a year, you may want to figure out the date of the last day in that week. There is no ...

Discover More

Creating a Dynamic Hyperlink

Want to create a hyperlink that will always display a different worksheet in your workbook? There are several ways to do ...

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (ribbon)

Sorting Files

The Open dialog box allows you to sort the files it presents to you. How you do the sorting depends on the version of ...

Discover More

Different CSV Formats

Excel provides different CSV formats you can use to export your workbook data for use with other programs. What are those ...

Discover More

Appending to a Non-Excel Text File

Does your macro need to add information to the end of a text file? This is called appending and is done using 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 four more than 7?

2019-06-05 04:24:35


Thank you for this tip. It's helped me immensely.

2018-09-18 04:32:03



Until this week, every time I used F12 in order to "save as" file name was completely the same but from this week, it always returns "copy of (file name)". Earlier, I saved the file with ____(1) if the file type is the same or with the same name if the type is different (xlsx/csv).
But now I can't run off "copy of ___"....
Do you have an idea what I need to do in order to change default file name (copy of__ ) during F12 keystroke in excel process?

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.