Somethings you need to get the current file path of the active workbook. Here is a function you can use. It returns a folder path ending with “\”, e.g. c:\winnt\system32\.
Public Function GetFilePath()
Dim FullPathFN
FullPathFN = ActiveWorkbook.FullName
GetFilePath = Mid(FullPathFN, 1, InStrRev(FullPathFN, “\”))End Function