Excel 2000 Insert file name & path

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Redline

Thread Starter
Joined
Oct 9, 2003
Messages
6
How do I show a file name and path in a cell? I do not want it in a header or footer.

Redline
 
Joined
Aug 30, 2003
Messages
2,702
Use this formula -

=LEFT(CELL("filename",A1),FIND("]",CELL("filename",A1)))

The file must be saved first for it to work.

Rgds,
Andy
 
Joined
Aug 30, 2003
Messages
2,702
If you need to lose the brackets, use

=SUBSTITUTE(LEFT(CELL("filename",A1),FIND("]",CELL("filename",A1))-1),"[","")

One string, no spaces.

Rgds,
Andy
 
Joined
May 4, 2002
Messages
743
XLG ,

Look up your sleeve and see if you got one that will work in a .XLT ?



- C










Without the future....
there would be no tomorrow!
 
Joined
Aug 30, 2003
Messages
2,702
Not AFAIK. Browsed a bit, but don't see how since the function returns null until the file is saved.

Maybe with the formula in place you could prompt to save in Workbook_Open (if(iserror)) then recalc ; but of course would depend on what you're actually trying to do.

Rgds,
Andy
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Top