'******************************************************************************************************************************
'Ajout des données dans la listview2
'******************************************************************************************************************************
Private Sub CmbAjouter_Click()
    
    ThisWorkbook.Activate
    
    If Not IsVide Then
       'on crée une ligne dans le Journal
        With [t_Journal].ListObject.ListRows.Add.Range
            .Resize(, 8) = Array(CmB_Categories, CmB_Type, TextBoxLIGNE, TextBoxVOIE, _
                                 TextBoxDU_PK, TextBoxAU_PK, TextboxCAUSES, Date)
            .Parent.Columns.AutoFit
        End With
        'On crée une Nouvelle Ligne, on met la valeur dans la première colonne de cette Ligne
        With Me.ListView2.ListItems.Add(, , "")
            .ForeColor = Color_Lvw(Me.CmB_Categories.Text)  'On détermine la couleur
            .ListSubItems.Add(, , Me.CmB_Type.Value).ForeColor = .ForeColor
            .ListSubItems.Add(, , Me.TextBoxLIGNE.Value).ForeColor = .ForeColor
            .ListSubItems.Add(, , Me.TextBoxVOIE.Value).ForeColor = .ForeColor
            .ListSubItems.Add(, , Me.TextBoxDU_PK.Value).ForeColor = .ForeColor
            .ListSubItems.Add(, , Me.TextBoxAU_PK.Value).ForeColor = .ForeColor
            .ListSubItems.Add(, , Me.TextboxCAUSES.Value).ForeColor = .ForeColor
            .ListSubItems.Add(, , Me.CmB_Categories).ForeColor = .ForeColor
            .Selected = True
        End With
        Effacer
    End If
    
End Sub