![]() Set list = CreateObject("ADOR.Recordset")įor Each f In fso.GetFolder("C:\temp").Files Set objLog = fso.CreateTextFile("c:\temp\out.log", true) The following code snippet, modified from a post by Ansgar Wiechers, allows you to specify a folder and then creates a list based on the extension: Set fso = CreateObject("Scripting.FileSystemObject") ![]() Set objWord = CreateObject("Word.Application") It also does not create the text file report. This script is obviously hardcoded for specific files, if you could demonstrate how to make it search all ".doc" files in the folder that would be great. ![]() So far I have created the following script which searches specified word docs for set terms. When a document is identified which contains the keyword the script should output the document file name to a text file report. I'd like to search through a large number of word files all held in the same folder, searching each document for a keyword.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |