How to Get a Full File Path in Excel?

Ever needed to find out the full path of your current file? What I mean by full path here is the full location of the active file including the directory path and full file name.

If you did, then what you need is this following code:

Application.ActiveWorkbook.FullName

The one line code will return the full directory path + filename of the active file, ex:
D:\My Directory\filename.xls

To simply use it from our formula bar, we can wrap the code into excel vba function like this:

Function FULLFILENAME()

     FULLFILENAME = Application.ActiveWorkbook.FullName

End Function

Every time we needed the information, just call the FULLFILENAME function from the formula bar.

This entry was posted in Excel Formula, Excel VBA Function, Workbook and Worksheet and tagged , , . Bookmark the permalink.

9 Responses to How to Get a Full File Path in Excel?

  1. Pingback: debt consolidation companies

  2. Pingback: reverse mortgage calculators

  3. Pingback: credit counseling

  4. Pingback: debt consolidation companies

  5. Pingback: consolidate loan

  6. Pingback: reverse mortgages pros and cons

  7. Pingback: beat maker software

  8. Pingback: video x

  9. Pingback: acid reflux symptoms

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>