Bonjour toutes et tous
merci à Jb_ j'ai essayé d'adapter en VB
voir Feuil2 du classeur ci-joint, pas très jolie comme code mais bon çà à l'air de tenir
' https://forum.excel-pratique.com/excel/faire-une-croix-si-la-colonne-contient-du-texte-166049
Option Explicit
Dim i As Integer
Dim Cible As String
Sub Bouton1_Cliquer()
On Error Resume Next
For i = 2 To 3
Cible = Sheets("Feuil2").Range("b2").Value
If Cells(i, 2) Like Cible Then Cells(i, 2) = "X"
Range("B2").Select
ActiveCell.FormulaR1C1 = _
"=IFERROR(IF(VALUE(SEARCH(R1C2,RC[-1])),""X"",""""),"""")"
Selection.AutoFill Destination:=Range("B2:B8"), Type:=xlFillDefault
Next i
End Sub
crdlt,
André