title: Kill path file not found
body: <p>I am trying to delete all files in the below folder. However error comes up as </p>
  
  <blockquote>
    <p>run time error 75: path/file not found</p>
  </blockquote>
  
  <p>However a couple of things to note:</p>
  
  <ol>
  <li>It does delete some files, but the same ones it never deletes</li>
  <li>The path does exist</li>
  </ol>
  
  <p>Code: </p>
  
  <pre><code>Sub deleteprevfixing()
      'First delete file contents
      Dim aFile As String
      aFile = "R:\samsfiles\sam\!test\*.*"
  
      If Len(Dir$(aFile)) &gt; 0 Then
           Kill aFile
      End If
  End Sub
  </code></pre>