![]() |
|
#6
|
|||
|
|||
|
You should be able to work on this I think.
Sub fixLinks() Dim osld As Slide, oshp As Shape Dim strpath As String strpath = InputBox("Enter the new path", "Edit Path", getexisting(ActivePresentation)) For Each osld In ActivePresentation.Slides For Each oshp In osld.Shapes If oshp.Type = msoLinkedOLEObject Then If oshp.OLEFormat.ProgID Like "*Excel*" Then oshp.LinkFormat.SourceFullName = strpath oshp.LinkFormat.Update End If End If Next: Next End Sub Function getexisting(opres As Presentation) As String 'this finds the first old link as a prompt Dim osld As Slide, oshp As Shape For Each osld In opres.Slides For Each oshp In osld.Shapes If oshp.Type = msoLinkedOLEObject Then If oshp.OLEFormat.ProgID Like "*Excel*" Then getexisting = oshp.LinkFormat.SourceFullName Exit Function If your need are more than this and you cannot edit yourself then as this is obviously a commercial enterprize I'm afraid you will have to hire me! |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Batch run "inspect documents"
|
ghumdinger | Word VBA | 4 | 05-13-2024 08:51 PM |
| Batch adding text to email subject lines in Outlook | paulkaye | Outlook | 0 | 12-05-2011 06:38 AM |
| MarkAsFinal - 'Edit Anyway' edit popup issue | GovindRS | PowerPoint | 1 | 06-20-2011 06:43 AM |
| Changing the slide master for a batch of presentations | amac2003 | PowerPoint | 0 | 05-24-2010 11:05 AM |
| Word 2007...Batch Conversion Wizard ??? | mw4man | Word | 0 | 12-18-2008 04:38 PM |