Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Interior.Color <> Range("A1").Interior.Color And Target.Interior.Color <> Range("A2").Interior.Color And Target.Column Mod 6 = 4 Then
Cancel = True
Target.Offset(0, 0).Select
Load UserForm_notes
UserForm_notes.Label_date.Caption = ActiveCell.Offset(0, -1)
UserForm_notes.Show
Else
If Target.Interior.Color <> Range("A1").Interior.Color And Target.Interior.Color <> Range("A2").Interior.Color And Target.Column Mod 6 = 5 Then
Cancel = True
Target.Offset(0, 0).Select
Load UserForm_notes2
UserForm_notes2.Label_date.Caption = ActiveCell.Offset(0, -2)
UserForm_notes2.Show
Else
''''''''''''''''''''''''''''''''''''''''''''''''''''''NE FONCTIONNE PAS EN VERT SUR LA CAPTURE'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
If Target.Interior.Color <> Range("A1").Interior.Color And Target.Interior.Color <> Range("A2").Interior.Color And Target.Column Mod 6 = 6 Then
Cancel = True
Target.Offset(0, 0).Select
Load UserForm_notes3
UserForm_notes3.Label_date.Caption = ActiveCell.Offset(0, -3)
UserForm_notes3.Show
End If
End If
End If