PDA

Click to See Complete Forum and Search --> : *resolved*get the full filename (with path and all) of the active workbook in Excel?


odedyer
Sep 23rd, 2004, 06:51 AM
How can I get the full filename (with path and all) of the active workbook in Excel? Is there a function that returns it?
For example, ActiveWorkbook.Name would give me "Book1.xls", but I want a function that would return "C:\Documents and Settings\MyUsername\My Documents\Book1.xls".

NeedSomeAnswers
Sep 23rd, 2004, 08:54 AM
This should do it !

Dim strNameAndPath As String


strNameAndPath = ActiveWorkbook.Path & "\" & ActiveWorkbook.Name