I really doubt that "nothing happens". Did you not check the Immediate window? Did it not error out if it could not find the site's folder?
Replace your Module's code with:
Sub Test_SearchFiles()
Dim v As Variant, a() As Variant, FileFolder As String, b() As Variant
FileFolder = "\\sptd.sabert.net\sites\op\olt\Production Supervisors\HouseKeeping\Completed_Checklist\" & Range("E4").Value2 & "\"
'FileFolder = ThisWorkbook.Path
SearchFiles FileFolder, "*.*", 0, a(), False
If ArrayIsNotEmpty(a) = False Then
MsgBox "Array a() is empty.", vbCritical, "No Files Found"
Exit Sub
End If
Worksheets.Add After:=Worksheets(Worksheets.Count)
b() = SearchFilesE2(a())
Range("A1").Resize(UBound(b)) = WorksheetFunction.Transpose(b)
End Sub
' Returns 2 dimension array. e.g. a(1,1)=Path, a(2,1)=Filename
Function SearchFiles(myDir As String _
, myFileName As String, n As Long, myList() _
, Optional SearchSub As Boolean = False) As Variant
Dim fso As Object, myFolder As Object, myFile As Object
Set fso = CreateObject("Scripting.FileSystemObject")
On Error GoTo EndNow
For Each myFile In fso.getfolder(myDir).Files
Select Case myFile.Attributes
Case 2, 4, 6, 34
Case Else
If (Not myFile.Name Like "~$*") _
* (myFile.Path & "\" & myFile.Name <> ThisWorkbook.FullName) _
* (UCase(myFile.Name) Like UCase(myFileName)) Then
n = n + 1
ReDim Preserve myList(1 To 2, 1 To n)
myList(1, n) = myDir
myList(2, n) = myFile.Name
End If
End Select
Next
If SearchSub Then
For Each myFolder In fso.getfolder(myDir).subfolders
SearchFiles = SearchFiles(myFolder.Path, myFileName, _
n, myList, SearchSub)
Next
End If
SearchFiles = IIf(n > 0, myList, CVErr(xlErrRef))
EndNow:
End Function
' Return 2nd dimension of array as 1 dimensional array
Function SearchFilesE2(anArray() As Variant) As Variant
Dim a1() As Variant, i As Integer
On Error GoTo EndNow
ReDim a1(1 To UBound(anArray, 2))
For i = 1 To UBound(anArray, 2)
a1(i) = anArray(2, i)
Next i
SearchFilesE2 = a1()
EndNow:
End Function
'Mikerickson, http://www.mrexcel.com/forum/showthread.php?p=1709702
Function ArrayIsNotEmpty(anyArray As Variant) As Boolean
On Error Resume Next
ArrayIsNotEmpty = IsNumeric(VarPtr(Array(LBound(anyArray))))
On Error GoTo 0
End Function
For the activex command button's code on that sheet, simply add this code. Tip: Open the Developer's ribbon and select the Design Mode button and double click the button to get the click event to open. Otherwise, right click the sheet's tab, View Code, paste.
Private Sub commandbutton1_Click()
Test_SearchFiles
End Sub