
筆箱にVBAのカンニングペーパーを入れる係のみすくです。こんにちは。
パラメータで指定されたパスのディレクトリが存在するかを判定。
'---------------------------------------------------------------------------------------------------
'【処 理 名】ディレクトリ存在確認
'【処理概要】ディレクトリが存在しているか確認する
'【引    数】ByVal path As String
'【返 却 値】True  あり
'            False なし
'---------------------------------------------------------------------------------------------------
Public Function isDirectory(ByVal path As String) As Boolean
    isDirectory = False
    If Dir(path, vbDirectory) <> "" Then
        isDirectory = True
    End If
End Function
最近のコメント




コメントを残す