Sub SelectRep()
Const ssfTous = &H1
Dim objShell As Object, objFolder As Object, oFolderItem As Object
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.BrowseForFolder(&H0&, "Choisir un répertoire", ssfTous)
Set oFolderItem = objFolder.Items.Item
On Error GoTo Nerror
Chemin = oFolderItem.Path
Nerror:
If Err.Number = 91 Then Chemin = "C:\Users\thierry\Desktop"
[D4] = Chemin
Set objShell = Nothing
Set objFolder = Nothing
Set oFolderItem = Nothing
End Sub