Say, I\'m writing a VBA inside my excel file sample.xls. Now I want to get the full path of sample.xls in my VBA. How do I do it?
this is a simple alternative that gives all responses, Fullname, Path, filename.
Dim FilePath, FileOnly, PathOnly As String FilePath = ThisWorkbook.FullName FileOnly = ThisWorkbook.Name PathOnly = Left(FilePath, Len(FilePath) - Len(FileOnly))