title: Run-Time Error 76: Path Not Found
body: <p>I am using the basic code below to copy files from one location to another. </p>
  
  <pre><code>Sub CopyFilesToLocation()
  
  Dim lRow As Long
  lRow = Cells(Rows.Count, 1).End(xlUp).Row
  
  For i = 69 To lRow
  
      FileCopy Cells(i, 19), "C:\Users\a222012\Desktop\Test\" &amp; Cells(i, 9) &amp; ".pdf"
  
  Next i
  
  End Sub
  </code></pre>
  
  <p>Cell (i,19) contains a hyperlink to a pdf file. I have about 5000 files. Using <code>On Error Resume Next</code> helped me get passed the run-time error and extract about 4400 files. The remaining 600 will all give the run-time error without <code>On Error Resume Next</code>. The 600 files have valid links, as when clicked, the pdf opens. Any idea why I would be getting the error?</p>
  
  <p>Edit: All files are on a network drive. Example of path:
  <code>\\19549dabjnb0002\images\2017.07\11\A217081\20170711095405.pdf</code></p>