View Single Post
 
Old 10-12-2019, 08:23 AM
ksor ksor is offline Windows 10 Office 2016
Advanced Beginner
 
Join Date: Feb 2018
Location: Århus V, Denmark
Posts: 31
ksor is on a distinguished road
Default Searching WORD files for specific link ???

I have a bunch of WORD-files in some subfolders.



In each file can be links inserted - maybe more, maybe no links at all.


When links are inserted it can be to the internet or to some local files.


How can I by VBA find out if a specific link are used or not in these files ?


In fact I'm looking for a function something like this:


IsThisLinkUsedIn(<link>,<top folder>)


and the function should just returning TRUE if the link IS used in ONE file in the subfolders or FALSE if the link is NOT used at all in any file in the subfolders.


I can do the treversing of the files (I think), but I'm not aware of how to search each file for a link via VBA - how can I do that ?
Reply With Quote