Option Explicit
Sub FileData()
If ActiveSheet.Name <> "Feuil2" Then Exit Sub
Dim n&: n = Cells(Rows.Count, 2).End(3).Row: If n = 8 Then Exit Sub
Dim chn$, i&, j%: Const nl As String * 2 = vbCrLf & vbCrLf
Open ThisWorkbook.Path & "\Données.txt" For Output As #1
Print #1, "Fichier Données.txt": Print #1, String$(19, "=")
Print #1, nl & "N, NOM, PRENOM, PROFESSION, ETABLISSEMENT, REGION, OBS, CONDITION" & nl
For i = 9 To n
chn = ""
For j = 1 To 8: chn = chn & Cells(i, j) & " ; ": Next j
chn = Left$(chn, Len(chn) - 3): Print #1, chn
Next i
Close #1
MsgBox "Les données ont été écrites dans Données.txt"
End Sub