To return the current path, use CurDir without an argument: : CurDir « File Path « VBA / Excel / Access / Word






To return the current path, use CurDir without an argument:

 
Sub curDirDemo()
    MsgBox CurDir
End Sub

 








Related examples in the same category

1.CurDir() Returns a string representing the current drive path.
2.To return the current path for a specified drive