Hi,
I’m trying to loop through documents that have graphics linked in with the INCLUDEPICTURE link. I want to break those links and embed the graphics in the document. Here’s the code I’m trying:
Sub EmbedGraphicsProcess()
Selection.HomeKey Unit:=wdStory
Do
Selection.GoTo What:=wdGoToField, Which:=wdGoToNext, count:=1, Name:=”INCLUDEPICTURE”
Selection.Find.ClearFormatting
Selection.Find.Execute
Selection.Fields.Unlink
Loop While Selection.Find.Found = True
End Sub
Problems include:
— Pictures disappearing when the links are broken.
— The Found property always testing False, even when an INCLUDEPICTURE link is found
Thanks,
Bob