LibreOffice 7.1 Help
Zmenà aktuálny priečinok alebo diskovú jednotku.
This statement currently does not work as documented. See this issue for more information.
ChDir Text As String
Text: Reťazcový výraz, ktorý určuje cestu alebo jednotku.
Ak chcete zmeniĹĄ iba aktuálnu jednotku, zadajte pĂsmeno jednotky a dvojbodku.
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