H
Hady
Guest
Bonjour à tous!
Voici ma procédure :
Sub InfoGraphique(Fe As String, Chart As Chart, TB As String)
Dim MaJ As Date
Sheets(Fe).Select
MaJ = Range(CelMaJ).Value
MaJ = Format(MaJ, 'mm/yyyy')
Chart.Activate
ActiveChart.Shapes(TB).Select
Selection.Characters.Text = 'Update : ' & Chr(10) & MaJ
ActiveChart.Deselect
End sub
Ce qui cloche c'est que la textbox affiche la date sous la forme 01/01/2005 et non pas 01/2005. Pourtant je pensais avoir bien géré l'histoire du format avec MaJ = Format(MaJ, 'mm/yyyy').
Est-ce que quelqu'un sait pourquoi le bon format de s'affiche pas?
Voici ma procédure :
Sub InfoGraphique(Fe As String, Chart As Chart, TB As String)
Dim MaJ As Date
Sheets(Fe).Select
MaJ = Range(CelMaJ).Value
MaJ = Format(MaJ, 'mm/yyyy')
Chart.Activate
ActiveChart.Shapes(TB).Select
Selection.Characters.Text = 'Update : ' & Chr(10) & MaJ
ActiveChart.Deselect
End sub
Ce qui cloche c'est que la textbox affiche la date sous la forme 01/01/2005 et non pas 01/2005. Pourtant je pensais avoir bien géré l'histoire du format avec MaJ = Format(MaJ, 'mm/yyyy').
Est-ce que quelqu'un sait pourquoi le bon format de s'affiche pas?