Dear Experts
How to findout parent folder of active workbook?
Dear Experts
How to findout parent folder of active workbook?
This will only work on a workbook that is already saved:
To shorten the formula, you could put![]()
Please Login or Register to view this content.
=CELL("filename") in any cell, let's say A1. Then, for the formula above replace all instances of CELL("filename") with A1.
Note: Do not change "filename" to your file's name. It literally needs to say "filename" including the quotes.
This formula will give you the full path up to the last "\" before the workbook's name, e.g. "C:\Documents and Settings\pjoaquin\my documents\examples\"
Alternatively in vba :
Again, the workbook needs to have been saved for this to work![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks