Free Excel UDF (user defined function) that displays the full file path and name of an Excel workbook. This function is very easy to use since it requires no arguments in order to function. It is a very simple and easy way to return the location of the current workbook including the workbook's name and file extension.
There are many different reasons you might want to use this macro; it is great if you aren't sure where an open Excel workbook file is saved on your computer or on the network; it allows you to display information about a workbook if you have disabled other features such as the menu system in Excel; etc.
Function NAMEWBKFILEPATH() As String
NAMEWBKFILEPATH = ThisWorkbook.FullName
End Function