Results 1 to 18 of 18

Thread: Need List of Files Containing Specific Text

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Microsoft Word MVP 2003-2009 VBAX Guru gmaxey's Avatar
    Joined
    Sep 2005
    Posts
    3,411
    Location
    What is the purpose of:

    Dim fso as Object
    Dim fld as Object
    ...
    Set fso = CreateObject("Scripting.FileSystemObject") 
     Set fld = fso.GetFolder(strPath) 
    ...
    Set fld = Nothing
    Set fso = Nothing
    Yes you loop through the files in a folder, but you do not loop through any files in any sub-folders of that folder.
    Last edited by Aussiebear; 04-19-2023 at 04:24 AM. Reason: Added code tags
    Greg

    Visit my website: http://gregmaxey.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •