To return the current path for a specified drive : CurDir « File Path « VBA / Excel / Access / Word






To return the current path for a specified drive

 
Sub curDirDemo1()
    CurDir ("C:\")
End Sub

 








Related examples in the same category

1.CurDir() Returns a string representing the current drive path.
2.To return the current path, use CurDir without an argument: