Sub GetFav()
'source: Iwer Moerck (March 1999)
Dim i As Integer
Dim Path As String
Dim f As String
Dim URL As String
Set sht = Sheets("Feuil1")
Path = "C:\windows\Favoris\*.*"
i = 1
f = Dir(Path)
If UCase(Right(f, 4)) = ".URL" Then
Open Left(Path, Len(Path) - 3) & f For Input As 1
Input #1, URL ' First one is not what you want
Input #1, URL
Close 1
sht.Cells(i, 1).Value = Right(URL, Len(URL) - 4)
i = i + 1
End If
Do
f = Dir()
If UCase(Right(f, 4)) = ".URL" Then
Open Left(Path, Len(Path) - 3) & f For Input As 1
Input #1, URL
Input #1, URL
Close 1
sht.Cells(i, 1).Value = Right(URL, Len(URL) - 4)
i = i + 1
End If
Loop Until f = ""
End Sub