Created
April 8, 2014 14:28
-
-
Save alpha1125/10133064 to your computer and use it in GitHub Desktop.
VBA word, to convert linked images to embedded.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This ends up being a blank, white, box for me. Am I missing something?