Question : Create file path

Sometimes I got error: Path not found when I used below line to create directory:
 If Dir(strReportFolder, vbDirectory) = "" Then
        MkDir strReportFolder
    End If

The reason is my path has many spaces, like: sales report 12 11 2009

What is the good way to create folder (if there is existent one, then don't create it) to avoid such errors? Thanks.

Answer : Create file path

Random Solutions  
 
programming4us programming4us