yes the variables were declared and filled with apropriate data
With Selection .HomeKey Unit:=wdStory With .Find .ClearFormatting .Text = strTextToReplace ' Loop until Word can no longer ' find the search string, inserting the specified image at each location Do While .Execute Selection.MoveRight Selection.InlineShapes.AddPicture FileName:=strImagePath, LinkToFile:=False, SaveWithDocument:=True Loop End With End With
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
17 Experts available now in Live!