How to find the PATH and FILENAME in inserted links in word documents ??
I a mainfolder I have 1000's of word documents in a subfolder and 100's of MP4-video files in another subfolder in the same mainfolder.
I have to test to see if all inserted "link" (with a file name in it) in each word document is found as a file among the video files in the subfolder abowe.
Just to get started I did this:
Create a new empty word document,
click INSERT/OBJECT
choose TAB "Create from file"
check both checkboxes
choose a MP4 video file
click OK
(My translations because I have WORD in a danish version !)
Then save the document and go to the immidiate window and do this typing:
? ActiveDocument.InlineShapes.Count
1 :thumb
? ActiveDocument.InlineShapes.Item(1).Type=wdInlineShapeEmbeddedOLEObject
True :thumb
then I try this:
? ActiveDocument.InlineShapes.Item(1).LinkFormat.SourceFullName
:banghead:
but it gives me errormessage. Runtime error 91 - Object variable not set
What am I doing wrong here ?