How do you make the INFO("directory") function work?

T

TimR

The INFO("directory") function displays the default directory instead of the
directory that the work book is saved in. I have succeeded in getting the
function to report the correct directory if a "Save As" command is used, but
closing the workbook and excel and then reopening excel and the workbook
agains shows the results as the default directory instead of the directory
that the workbook is saved in.
 
J

Jacob Skaria

INFO() returns information about the current operating environment and not
the path of the current workbook. This is the same as what is mentioned in
Tools>Options>General>Default file location

If you are looking to get the workbook path you can use the below..(make
sure you try this in a saved workbook)

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

If this post helps click Yes
 

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