TaskMaster
Board Regular
- Joined
- Oct 15, 2020
- Messages
- 75
- Office Version
- 365
- 2016
- Platform
- Windows
Good morning all,
I have the following which checks to see if I have a folder for the current month in the following location, and if I don't creates one. Is it possible to tweak this so that it creates sub-folders within the month folder called "Data" and another subfolder in data called "Detailled"
I have the following which checks to see if I have a folder for the current month in the following location, and if I don't creates one. Is it possible to tweak this so that it creates sub-folders within the month folder called "Data" and another subfolder in data called "Detailled"
VBA Code:
Dim folderPath As String
folderPath = "\\users\TM\Desktop\Test\" & Format(Date, "mm. ") & Format(Date, "mmmm")
If Dir(folderPath, vbDirectory) = "" Then
MkDir folderPath
End If