' Counts files in the directory With Application.FileSearch .LookIn = "\\xxxxx\Share\Daily\" & Range("Q3").Value .FileType = msoFileTypeExcelWorkbooks .Execute Dim found As String found = .FoundFiles.Count End With If found <> 9 Then MsgBox ("WARNING! There are only " & " " & found & " files present. You need to review prior to the rollup!") Call openDIR Else MsgBox ("There are" & " " & found & " files present. You can proceed to script rollup!") End If
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.