Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-12-2023, 10:04 AM
vivka vivka is offline Select where to insert new image Windows 7 64bit Select where to insert new image Office 2016
Expert
 
Join Date: Jul 2023
Posts: 305
vivka is on a distinguished road
Default

Hi! Catch it:
Code:
Sub Replace_Pic()
    
    selection.Find.ClearFormatting
    selection.Find.Replacement.ClearFormatting
    With selection.Find
       .text = "^g"
       .MatchWildcards = False
       .Execute
       If .found Then
          selection.InlineShapes.AddPicture filename:= _
            "d:\Desktop\2.jpg", LinkToFile:=False, _
            SaveWithDocument:=True
       End If
    End With
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Select Image and Move to Front Pestomania Word VBA 1 12-24-2020 09:07 AM
Word 2007-cannot select or copy image calvin-c Word 2 01-05-2017 02:26 PM
ComboBox : select image to insert in Sheet1 smallxyz Excel Programming 0 02-07-2016 05:41 PM
Select where to insert new image Select an entire line (to insert one) Officer_Bierschnitt Excel Programming 3 11-06-2015 03:05 AM
Background image vs. insert image lilaria PowerPoint 0 04-18-2011 08:45 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:55 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft