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:
- Click the File tab of the ribbon.
- At the left side of the screen, click Info. (This is probably displayed by default.)
- 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.)
- Choose Copy Link to Clipboard.
Figure 1. Where Excel 2016 stores location information.
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:UsersAdministratorDesktop[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:
- Press F12. Excel displays the Save As dialog box.
- Click once in the Location Bar at the top of the dialog box. Excel displays the path in which the current workbook is located.
- Press Ctrl+C. This copies the location to the Clipboard.
- 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:
- 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.)
- At the left side of the dialog box click Customize (Excel 2007) or Quick Access Toolbar (Excel 2010 or later versions). (See Figure 2.)
- Use the Choose Commands From drop-down list to choose All Commands.
- In the list of commands, choose Document Location.
- Click the Add button. The command is copied to the right side of the screen.
- Click OK.
Figure 2. The Quick Access Toolbar area of the Excel Options dialog box.
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:
- Press Alt+F11. Excel displays the Visual Basic Editor.
- Press Ctrl+G. Excel displays (if necessary) and activates the Immediate window.
- Type “? activeworkbook.fullname” (without the quote marks) and press Enter. VBA displays the full path to the current workbook.
- Highlight the full path name and press Ctrl+C.
- Press Alt+Q to close the Visual Basic Editor.