Cocher une cellule excel

bibi&cie -  
Ricky38 Messages postés 5776 Date d'inscription   Statut Contributeur Dernière intervention   -
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. Ricky38 Messages postés 5776 Date d'inscription   Statut Contributeur Dernière intervention   1 463
     
    oui c'est possible avec une macro

    attends je te fait un exemple

    quel version excel tu as ?
    0
  2. Ricky38 Messages postés 5776 Date d'inscription   Statut Contributeur Dernière intervention   1 463
     
    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"
    0
    1. bibi&cie
       
      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.
      0
      1. Ricky38 Messages postés 5776 Date d'inscription   Statut Contributeur Dernière intervention   1 463 > bibi&cie
         
        Salut,

        tu peux aussi envoyer ton fichier sur http://www.cijoint.fr et pourrai te le faire
        0