Cocher une cellule excel

Bonjour,
Je voudrais, faire apparaître un X (lettre ou symbole quelconque), simplement en cliquant sur une cellule excel.
Est-ce possible ?
Configuration: Windows XP Internet Explorer 7.0

3 réponses

  1. Contributeur
    oui c'est possible avec une macro

    attends je te fait un exemple

    quel version excel tu as ?
    1. Contributeur
      Salut,

      avec un code VBA sur ta feuille

      Private Sub worksheet_beforedoubleclick(ByVal target As Range, cancel As Boolean)
          If Intersect(Range("cocher"), target) Is Nothing Then Exit Sub
          If IsEmpty(target) Then
              target = "x"
              cancel = True
          Else
              If target = "x" Then
                  target = ""
                  cancel = True
              End If
          End If
              
      End Sub
      


      Voici un exemple que je t'ai fait http://www.cijoint.fr/cjlink.php?file=cj200911/cij9oLCLY0.xls

      À noter que la plage A2:A10 porte le nom de "cocher"
      1. Merci, Ricky38

        Ce qu tu proposes semble prometteur. Je ne suis pas spécialiste des macros, mais je vais cogiter sur ta solution.

        ça roule.