Inserting Field To Insert Full Path to Excel File

W

Will

Is there a field or function in Excel that would insert a full path to the
spreadsheet on the file system along with the name? For example:

\\ourserver\sharedfiles\some\directory\path\my-excel-spreadsheet.xls

You often get handed a printout of a spreadsheet, and it would really be
nice if the printed version of the spreadsheet had a way to reference its
own location so you could easily get back to it starting from the printed
version.

In Page Setup I see a way in the header to insert &File to get the filename
only, but that does not insert a full path.
 
V

via135

hi

try this one!

in the cell you want to have the file name type

=cell("filename")

-via135
 
D

Dave Peterson

If you don't include a reference to a worksheet, then that formula will return
the name of the file/worksheet that is active when excel calculates.

It's usually better to use a formula like:
=cell("Filename",a1)
(a1 can be any cell)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top