📜  vba 创建目录 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:56.665000             🧑  作者: Mango

代码示例1
'requires reference to Microsoft Scripting Runtime
Function MkDir(ByVal strDir As String, ByVal strPath As String)
      Dim fso As New FileSystemObject
      Dim path As String
    path = strPath & strDir
    If Not fso.FolderExists(path) Then
        fso.CreateFolder path
    End If
End Function