Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub DOT_Text_Search()
Dim MyFileSearch As FileSearch
Dim MyFoundFile As Variant
Dim MyFoundFiles As String
Set MyFileSearch = Application.FileSearch
With MyFileSearch
.NewSearch
.LookIn = "C:\"
'Be careful using this with the root drive
.SearchSubFolders = True
.FileType = msoFileTypeTemplates
.TextOrProperty = "[i]Your test[/i]"
.MatchTextExactly = True
.Execute
End With
For Each MyFoundFile In MyFileSearch.FoundFiles
MyFoundFiles = MyFoundFiles & vbCrLf & MyFoundFile
Next MyFoundFile
MsgBox MyFoundFiles, vbOKOnly, "Files Found"
Clean_up:
Set MyFileSearch = Nothing
End Sub