Hello, this post is in response to here: List files macro, need to add exclude specific subfolder in it
What does the above line mean? and also,
Function IndexStrArray(vArray() As String, sVal As String) As Long Dim v As Variant, i As Long On Error GoTo Minus1 For i = 0 To UBound(vArray) If vArray(i) = sVal Then IndexStrArray = i Exit Function End If Next i Minus1: IndexStrArray = -1 End Function
What exactly is the above code doing here?