title: Recursively access subfolder files inside a folder
body: <p>I have written this code to access Excel files inside a folder:</p>
  
  <pre><code>strPath="C:\Test\"
  
  Set objFso = CreateObject("Scripting.FileSystemObject")
  Set objFolder = objFso.GetFolder (strPath)
  Set objExcel= CreateObject("Excel.Application")
  objExcel.Visible= False
  
  For Each objFile In objFolder.Files
   If objFso.GetExtensionName(objFile.Path) = "xls" Then
  </code></pre>
  
  <p>Now I have to create some subfolders and put some .xls files in those.  </p>
  
  <p>What modification should I do in my code for searching files in main folder and all other subfolders (there are also some folders inside subfolders)?</p>