View Single Post
 
Old 10-21-2019, 11:34 AM
ksor ksor is offline Windows 10 Office 2016
Advanced Beginner
 
Join Date: Feb 2018
Location: Århus V, Denmark
Posts: 74
ksor is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
I'm not sure how your videos are linked into the doc but the code on this page LinkFormat.SourceFullName property (Word) | Microsoft Docs might get you started.

If your linked objects are inline shapes you would have to change .Shapes to .InlineShapes

See also microsoft excel - Updating link paths with Word VBA - Super User for more info.

It seems like the first link is just what I need, but I wonder why I can't get it to work !


I created a word-document with ONE inserted object as a chained file (a mp4.video)


I open the document and then open the immediate window to investigate:


? ActiveDocument.InlineShapes.Count
1

? ActiveDocument.InlineShapes.Item(1).Type=wdInlineS hapeEmbeddedOLEObject
True



then I try this:
? ActiveDocument.InlineShapes.Item(1).LinkFormat.Sou rceFullName



but it give me errormessage. Runtime error 91 - Object variable not set


How can I get this under my skin - help me !
Reply With Quote