Skip to content

Instantly share code, notes, and snippets.

@alpha1125
Created April 8, 2014 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alpha1125/10133064 to your computer and use it in GitHub Desktop.
Save alpha1125/10133064 to your computer and use it in GitHub Desktop.
VBA word, to convert linked images to embedded.
Sub convert_all_inline_shapes()
Dim s As InlineShape
For Each s In ActiveDocument.InlineShapes
If s.Type = wdInlineShapeLinkedPicture Then
' use debug print to get a list of images converted.. not necessary though...
Debug.Print s.Type & " <>"
s.LinkFormat.SavePictureWithDocument = True
s.LinkFormat.Update
s.LinkFormat.BreakLink
End If
Next s
End Sub
@drewchapin
Copy link

This ends up being a blank, white, box for me. Am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment