1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
| Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
Dim noligne As Integer
noligne = Range("A4:A65536").Find(n, lookat:=xlWhole).Row
'Insertion des valeurs sur l'UserForm'nom
ADHERENT.TextBox1 = Cells(Target.Row, 1)
'pr?nom
ADHERENT.TextBox2 = Cells(Target.Row, 2)
'Adresse postal
ADHERENT.TextBox3 = Cells(Target.Row, 3)
'Code postal
ADHERENT.TextBox4 = Cells(Target.Row, 4)
'Ville
ADHERENT.TextBox5 = Cells(Target.Row, 5)
'n)t?l?phone fixe
ADHERENT.TextBox6 = Cells(Target.Row, 6)
'n?t?l?phone portable
ADHERENT.TextBox7 = Cells(Target.Row, 7)
' adresse mail
ADHERENT.TextBox8 = Cells(Target.Row, 8)
'cocher les chexbox si les cellules =1
'Adh?rents
If Cells(N_ligne, 9) = "1" Then
CheckBox19 = True
Else
CheckBox19 = False
End If
'Danse salon
If Cells(N_ligne, 10) = "1" Then
CheckBox16 = True
Else
CheckBox16 = False
End If
'dict?e petit salon
If Cells(N_ligne, 11) = "1" Then
CheckBox17 = True
Else
CheckBox17 = False
End If
'dict?e foyer rigole
If Cells(N_ligne, 12) = "1" Then
CheckBox4 = True
Else
CheckBox4 = False
End If
'M?moire petit bosquet
If Cells(N_ligne, 13) = "1" Then
CheckBox5 = True
Else
CheckBox5 = False
End If
'm?moire JBC
If Cells(N_ligne, 14) = "1" Then
CheckBox6 = True
Else
CheckBox6 = False
End If
'm?moire Rigole
If Cells(N_ligne, 15) = "1" Then
CheckBox7 = True
Else
CheckBox7 = False
End If
'Peinture
If Cells(N_ligne, 16) = "1" Then
CheckBox8 = True
Else
CheckBox8 = False
End If
'sophro Mardi
If Cells(N_ligne, 17) = "1" Then
CheckBox9 = True
Else
CheckBox9 = False
End If
' sophro lundi
If Cells(N_ligne, 18) = "1" Then
CheckBox10 = True
Else
CheckBox10 = False
End If
'Ecriture
If Cells(N_ligne, 19) = "1" Then
CheckBox11 = True
Else
CheckBox11 = False
End If
' Ecriture J
If Cells(N_ligne, 20) = "1" Then
CheckBox14 = True
Else
CheckBox14 = False
End If
' Lecture Musicale
If Cells(N_ligne, 21) = "1" Then
CheckBox13 = True
Else
CheckBox13 = False
End If
'Astronomie
If Cells(N_ligne, 22) = "1" Then
CheckBox15 = True
Else
CheckBox15 = False
End If
' D?clarer Administratif
If Cells(N_ligne, 23) = "1" Then
CheckBox18 = True
Else
CheckBox18 = False
End If
'ouvrir userform
ADHERENT.Show
End Sub |