here is an example how it can be done (no API):
Public Function ListAllExcelWB(Optional ByVal SearchFor$) As Variant() 'exept this one
On Error Resume Next
If SearchFor = vbNullString Then SearchFor = "*.*"
Dim xl As Excel.Application
Dim Wb As Workbook
Dim Status As Long
Dim Arr()
ReDim Arr(1 to 2, 1 To 100)
Dim i&
Do
Err.Clear
Set xl = GetObject(, "Excel.Application")
Status = Err.Number
If Status = 0 Then
'xl.Visible = True
For Each Wb In xl.Workbooks
With Wb
If .Name <> ThisWorkbook.Name Then
i = i + 1
Arr(1, i) = .Name
Arr(2, i) = .Path & "\" & .Name
If i > 99 Then Status = 1
Else: Status = 1 'stoppe la loop si se trouve soi meme, car au niveau des stack, l'instance active est la derniere
End If
End With
Next
End If
Loop Until Status <> 0 '= 429
If i > 0 Then
ReDim Preserve Arr(1 to 2,1 To i)
Else: Erase Arr 'ReDim Arr(0 To 0)
End If
Err.Clear: On Error GoTo 0
Set xl = Nothing: Set Wb = Nothing
ListAllExcelWB = Arr
Erase Arr
End Function