Bonjour à tous!
Je n'arrive pas à mettre en format date "yyyy-mm-dd" les colonnes de ma ListBox1 où il se retrouve des dates en format numérique dans le tableau source. Voici les codes que j'ai essayé sans succès :
With ListBox1
.RowSource = "TB_Plani"
.Column(8) = Format(CDate(.Column(8)), "yyyy-mm-dd")
.Column(9) = Format(CDate(.Column(9)), "yyyy-mm-dd")
.Column(10) = Format(CDate(.Column(10)), "yyyy-mm-dd")
End With
With ListBox1
.RowSource = "TB_Plani"
.Column(8) = Format(.Column(8), "yyyy-mm-dd")
.Column(9) = Format(.Column(9), "yyyy-mm-dd")
.Column(10) = Format(.Column(10), "yyyy-mm-dd")
End With
Dim X As Integer
With ListBox1
.RowSource = "TB_Plani"
For X = 0 To ListBox1.ListCount - 1
.List(X, 8) = Format(.List(X, 8), "yyyy-mm-dd")
.List(X, 9) = Format(.List(X, 9), "yyyy-mm-dd")
.List(X, 10) = Format(.List(X, 10), "yyyy-mm-dd")
Next X
End With
Je n'arrive pas du tout à comprendre comment faire, pouvez-vous m'aider?