Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-02-2012, 07:22 AM
JohnWilson JohnWilson is offline Changing Video Link Paths Windows 7 64bit Changing Video Link Paths Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,914
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

If you decide exactly which part of the link needs to change you should be able to do this.



Code:
Sub change_path()
Dim osld As Slide
Dim oshp As Shape
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.Type = msoMedia Then
If oshp.MediaType = ppMediaTypeMovie Then
On Error Resume Next ' in case there are embedded videos
If oshp.LinkFormat.SourceFullName <> "" Then
'original was C:\users\John\Desktop\MyVids\vid.wmv
'new path is C:\users\John\Desktop\MyNewVids\vid.wmv
oshp.LinkFormat.SourceFullName = Replace(oshp.LinkFormat.SourceFullName, Find:="MyVids", Replace:="MyNewVids")
End If
End If
End If
Next oshp
Next osld
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Two motion paths iskenderbaris PowerPoint 0 04-12-2012 03:13 AM
Changing Video Link Paths Relative path for video link? Is it possible? Baudisson PowerPoint 1 01-10-2012 02:19 AM
motion paths Cath5000 PowerPoint 0 07-29-2011 10:59 AM
Powerpoint with audo and video convert to video BasSander PowerPoint 0 06-22-2011 02:37 AM
Motion Paths with Rotation PBone PowerPoint 4 01-13-2011 11:59 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:16 PM.


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