title: Adding Picture gives linked image cannot be displayed. Excel VBA
body: <p>I'm trying to get some pictures into an Excel sheet using the following:</p>
  
  <pre><code>Sub Addpicture()
     Dim strPath
     Dim p As Object
     strPath = &lt;String containing path here&gt;
     Set p = ActiveSheet.Shapes.Addpicture(strPath, msoCTrue, msoTrue, 1000, 10, 86, 129)
     ActiveSheet.Pictures.Insert (strPath)
  End Sub
  </code></pre>
  
  <p>Both Pictures.Insert and Shapes.Addpicture just give me a rectangle in the right place containing the words "The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location"</p>
  
  <p>I'm fairly sure my file path is correct. Does anyone have any insight into the issue? </p>