Я ищу решение для создания каждой папки из пути, либо логического пути с буквой диска, либо сетевого пути лучше в формате l oop
strPath = "c:\Parent Folder\Child Folder\Sub Folder\Stuff"
' OR
strPath = "\\serverfolder\Parent Folder\Child Folder\Sub Folder\Stuff"
varSplit = Split(strPath, "\", , vbTextCompare)
' CreateFolder for each folder in path
CreateFolder(varSplit(0)) ' if valid, C: or identify is it server folder
CreateFolder(varSplit(1)) ' if dosent exist, Parent Folder
CreateFolder(varSplit(2)) ' Child Folder
CreateFolder(varSplit(3)) ' Sub Folder
CreateFolder(varSplit(4)) ' Stuff
' better in loop
Public Function CreateFolder(ByVal Path As String) As String
strPath = Path
' Check Destination Folder. Create it, if not exist`
On Error Resume Next
Select Case Dir(strPath, vbDirectory)
Case vbNullString
MakeDir = Empty
Case Else
On Error Resume Next
VBA.FileSystem.MkDir (strPath)
MakeDir = strPath
End Select
End Function