Instrukcja ChDir
Zmienia bieżący katalog lub napęd.

This statement currently does not work as documented. See this issue for more information.
Składnia:
ChDir tekst As String
Parametry:
Text: Dowolny łańcuch określający ścieżkę katalogu lub napęd.

Jeśli chcesz tylko zmienić bieżący dysk wpisz literę dysku i dwukropek.
Przykład:
Sub ExampleChDir
Dim sDir1 As String , sDir2 As String
sDir1 = "c:\Test"
sDir2 = "d:\Private"
ChDir( sDir1 )
MsgBox CurDir
ChDir( sDir2 )
MsgBox CurDir
End Sub