Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Set Target = Intersect(Target, [A:A], Me.UsedRange)
If Target Is Nothing Then Exit Sub
Dim lig&
Application.ScreenUpdating = False
For Each Target In Target
lig = Target.Row
If lig > 1 And Target <> "" Then
With ThisWorkbook.Names
.Add "texte1", UCase(Trim(Cells(lig, 2) & " " & Target))
.Add "texte2", UCase(Trim(Cells(lig, 4)))
.Add "texte3", LCase(Trim(Mid(Cells(lig, 5), InStr(Cells(lig, 5), ",") + 1)))
.Add "texte4", Cells(lig, 6)
.Add "texte5", LCase(Trim(Mid(Cells(lig, 7), InStr(Cells(lig, 7), ",") + 1)))
.Add "texte6", Cells(lig, 8)
End With
Feuil2.ExportAsFixedFormat xlTypePDF, ThisWorkbook.Path & "\" & _
Trim(Target & " " & Cells(lig, 2)) & Format(Date, " dd-mm-yyyy")
End If
Next
End Sub