CurDir() Returns a string representing the current drive path. : CurDir « File Path « VBA / Excel / Access / Word






CurDir() Returns a string representing the current drive path.

 
Sub strDemo20()
   Debug.Print CurDir()
End Sub

 








Related examples in the same category

1.To return the current path, use CurDir without an argument:
2.To return the current path for a specified drive