Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 11-07-2018, 03:35 PM
macropod's Avatar
macropod macropod is offline Change link path to a number of figures efficiently Windows 7 64bit Change link path to a number of figures efficiently Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,528
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

I'd approach the task differently, allowing for the possibility that some linked 'figures' might not use a picture format:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim i As Long
Const strPath As String = "C:\NewPath\"
With ActiveDocument
  For i = .Shapes.Count To 1 Step -1
    With .Shapes(i)
      If Not .LinkFormat Is Nothing Then
        With .LinkFormat
          .SourceFullName = strPath & .SourceName
        End With
      End If
    End With
  Next
  For i = .InlineShapes.Count To 1 Step -1
    With .InlineShapes(i)
      If Not .LinkFormat Is Nothing Then
        With .LinkFormat
          .SourceFullName = strPath & .SourceName
        End With
      End If
    End With
  Next
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change link path to a number of figures efficiently Link image using file path Jue92 Word 2 10-17-2016 01:09 AM
Change link path to a number of figures efficiently Figure Captioning Labels All Figures As Number 1 AnonAccount Word 3 03-31-2015 10:44 PM
Change link path to a number of figures efficiently Change old path to new path (batch) NobodysPerfect Word VBA 2 08-14-2014 10:09 PM
How do I permanently update the file name path in the Data Link properties? lynnwalder Mail Merge 2 05-20-2013 11:38 AM
Change link path to a number of figures efficiently Relative path for video link? Is it possible? Baudisson PowerPoint 1 01-10-2012 02:19 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:21 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