Option Compare Text
Sub Liste_dates()
Sheets("données").Unprotect ("flora1")
With Sheets("données")
.Range("AA1:AA" & Range("AA" & Application.Rows.Count).End(xlUp).Row).ClearContents
For i = 13 To .Range("C" & Application.Rows.Count).End(xlUp).Row
If .Cells(i, 3) Like "*" & "Gaz" & "*" Then
j = .Range("AA" & Application.Rows.Count).End(xlUp).Row + 1
.Cells(j, 27).Value = .Cells(i, 4).Value
End If
Next i
End With
MsgBox "Liste générée"
Sheets("données").Protect AllowSorting:=True, AllowFiltering:=True, _
AllowUsingPivotTables:=True, Password:="flora1"
End Sub