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?
strScriptFullname = WScript.ScriptFullName strScriptPath = Left(strScriptFullname, InStrRev(strScriptFullname,"\"))