[COLOR=blue][FONT=Courier]Sub[/FONT][/COLOR][FONT=Courier] Test_Fichier()[/FONT]
[FONT=Courier] [COLOR=blue]Dim[/COLOR] Fichier [COLOR=blue]As String[/COLOR][/FONT]
[FONT=Courier][COLOR=blue]Dim reponse as boolean[/COLOR][/FONT]
[FONT=Courier] Fichier = Dir(C:\Documents and Settings\moi\Desktop\" & ComboBox1)[/FONT]
[FONT=Courier] [COLOR=blue]If[/COLOR] Fichier <> "" [COLOR=blue]Then[/COLOR][/FONT]
[FONT=Courier][COLOR=blue]Reponse = msgbox("[FONT=Verdana][COLOR=#000000]Ce fichier existe déjà, voulez-vous l'ouvrir?" [/COLOR][/FONT], vbYesNo)
If Reponse = vbNo Then
Exit Sub
End If
Reponse = vbYes[/COLOR][/FONT]
[FONT=Courier][COLOR=blue]Fichier.open[/COLOR][/FONT]
[FONT=Courier] [COLOR=#006633]'le fichier existe[/COLOR][/FONT]
[FONT=Courier] [COLOR=blue]Else[/COLOR][/FONT]
[FONT=Courier][COLOR=blue]exit sub[/COLOR][/FONT]
[FONT=Courier] [COLOR=#006633]'le fichier n'existe pas[/COLOR][/FONT]
[FONT=Courier] [COLOR=blue]End If[/COLOR][/FONT]
[COLOR=blue][FONT=Courier]End Sub[/FONT][/COLOR]
[COLOR=blue][FONT=Courier][/FONT][/COLOR]