title: vba Bad file name or number
body: <p>I have problem. This is a code</p>
  
  <pre><code>Function FolderCreate(ByVal path As String) As Boolean
  
  FolderCreate = True
  
  Dim fso As New FileSystemObject
  
  If FolderExist(path) Then
      Exit Function
  Else
      fso.CreateFolder path
      Exit Function
  End If
  
  End Function
  
  Function FolderExist(ByVal path As String) As Boolean
      FolderExist = False
      Dim fso As New FileSystemObject
      If fso.FolderExists(path) Then FolderExist = True
  End Function
  </code></pre>
  
  <p>i try too create folder U:\Paweł\Generator\Akus Marcin 20180108001
  and i get a bad file name or number.</p>
  
  <p>when i try to create other folder like this U:\Paweł\Generator\Bedrunka Brunon 20171219001 there is no problem. What's wrong with the name of the folder?
  thanks for the answer</p>