Hi all,
I have a few documents with images in them. They're all linked images. The source of these images are all missing.
When I open the document in Word 2013, I can see the images. When I open the document as a zip-file, I can see the correct images in the word\media folder.
When I select the image and press [F9] I see a square with a red cross in it (The linked image cannot be displayed.; as is to be expected since the source of the image is missing).
However, when I go to the backstage-view and click Edit Links to Files => Select the name (Source file) => click Break Link (check Save picture in document), the link won't break. The image is still a linked image, and updating the document causes the red
cross to appear.
I've also tried a little VBA macro to see if that works, but no. It can see the linked image, but it's unable to break the link and embed the image.
Private Sub Document_Open()
Dim s As InlineShape
For Each s In ActiveDocument.InlineShapes
If s.Type = wdInlineShapeLinkedPicture Then
s.LinkFormat.SavePictureWithDocument = True
s.LinkFormat.BreakLink
End If
Next s
End Sub
I've tried with Word 2016 and Word 2010 as well, but they also fail to break the link to the images.
Word 2007 however IS able to break the link to the images.
Can anyone help me on this in order to make the unlinking of the images work in Word 2013?
Or explain to me how the unlinking does work with Word 2007 and not with other versions of Word?
Opening them all in Word 2007, unlinking them and saving them all is not really an option unfortunately...
Regards,
Bert