I'm trying to get some pictures into an Excel sheet using the following:
Sub Addpicture()
Dim strPath
Dim p As Object
strPath = <String containing path here>
Set p = ActiveSheet.Shapes.Addpicture(strPath, msoCTrue, msoTrue, 1000, 10, 86, 129)
ActiveSheet.Pictures.Insert (strPath)
End Sub
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"
I'm fairly sure my file path is correct. Does anyone have any insight into the issue?