Bonjour,
Le code de jb renvoie la liste des fichiers mais pas la lettre du Drive :
Voici une adaptation ad hoc :
Sub test()
S = USBD
If Len(S) = 1 Then
MsgBox S
Else
MsgBox "Plusieurs Drivess détectés : " & S
End If
End Sub
Function USBD()
Set fs = CreateObject("Scripting.FileSystemObject")
Tmp = ""
For Each d In fs.Drives
If d.DriveType = 1 Then
If d.IsReady Then Tmp = Tmp & d.DriveLetter
End If
Next
USBD = Tmp
End Function
A+