:)
Intenta con:
Sub Generar_Lista_de_Archivos()
Dim ws As Worksheet, iFile, mPath$
iFile = "Selecciona uno cualquiera de" & vbLf & "los archivos a listar:"
MsgBox iFile
iFile = Application.GetOpenFilename
If VarType(iFile) = vbBoolean Then Exit Sub
Application.ScreenUpdating = False
Set ws = ActiveSheet
mPath = Left(iFile, InStrRev(iFile, "\"))
iFile = Dir(mPath & "*.*")
ws.[a1].CurrentRegion.Delete xlUp: ws.[a1] = "Listado de archivos"
While iFile <> ""
If iFile Like "*.*xl*" Or iFile Like "*.pdf" Then
ws.Hyperlinks.Add _
Anchor:=ws.Cells(Rows.Count, "a").End(xlUp).Offset(1), _
Address:=mPath & iFile, _
TextToDisplay:=iFile
End If
iFile = Dir
Wend
With ws.ListObjects.Add(xlSrcRange, ws.[a1].CurrentRegion, , xlYes)
.Range.Columns.AutoFit
.TableStyle = "TableStyleMedium17"
.Unlist
End With
Application.ScreenUpdating = True
End Sub
¿Te sirve la idea?...
:)