bibines
Messages postés16Date d'inscriptionvendredi 23 juillet 2004StatutMembreDernière intervention21 décembre 2005 20 déc. 2005 à 12:30
Bonjour,
voici un exemple pour créer un graph (après tu peux changer le type de graph, les couleurs, police...)
With graph.Chart
.ChartWizard Source:=Source de ton graph, _
Gallery:=xl3DColumn, _
PlotBy:=xlRows, _
HasLegend:=True, _
title:=Titre de ton graph, _
CategoryLabels:=1, _
SeriesLabels:=1
'Mise en forme du graphique
.ChartTitle.Font.Size = 8.5
.Legend.Interior.Color = RGB(255, 255, 204)
.Legend.Font.Size = 7
If bas Then
.Legend.Position = xlLegendPositionBottom
.Axes(xlValue).TickLabels.Font.Size = 7
.Axes(xlCategory).TickLabels.Font.Size = 7
Else
.Axes(xlValue).TickLabels.Font.Size = 8
.Axes(xlCategory).TickLabels.Font.Size = 8
End If
.SeriesCollection(3).Interior.Color = RGB(255, 102, 0)
.ChartArea.Interior.Color = RGB(255, 255, 204)
.Floor.Interior.Color = RGB(192, 192, 192)
.Walls.Interior.Color = RGB(255, 255, 204)
.Axes(xlCategory).HasMajorGridlines = True
.Axes(xlValue).TickLabels.NumberFormat = "0.0%"
.Axes(xlValue).MajorGridlines.Border.Color = RGB(150, 150, 150)
.Axes(xlCategory).MajorGridlines.Border.Color = RGB(150, 150, 150)
.Rotation = 44
.Elevation = 44
End With