Link to home
Start Free TrialLog in
Avatar of Phintz
Phintz

asked on

Replace text for image

   Could anyone please how i can replace à text string for an image in word?
So far i have tried this which provides The image every time regardless of The string.
 
Sub brief()
   Dim obj As LineShape
 
   
   Set obj = ActiveDocument.LineShapes.AddPicture(FileName:= _
    "C:\Users\Peter Hintzen\Documents\registratie documenten\handtekening.jpg", LinkToFile:=False, _
    SaveWithDocument:=True, Left:=-35, Top:=560)
       With obj
        
        .WrapFormat.Type = 3
        .ZOrder 5
       
       
       End With
   
   End Sub
ASKER CERTIFIED SOLUTION
Avatar of Flyster
Flyster
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.