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 CountFiles()
With Application.FileSearch
.LookIn = "c:\my documents"
.FileType = msoFileTypeAllFiles
If .Execute > 0 Then
MsgBox .FoundFiles.Count & " files were found"
Else
MsgBox "No files were found"
End If
End With
End Sub