bonjour,
j'ai un petit souci je voudrais faire auto dimensionner mon tableau
voici mon code
Code :
- Sub CreaGraphiq()
- Charts.Add
- ActiveChart.ChartType = xlColumnClustered
- ActiveChart.SeriesCollection(1).Delete
-
- Dim i
- For i = 3 To Worksheets.Count + 1
- With ActiveChart.SeriesCollection.NewSeries
- .Name = Sheets(i).Name
- .Values = "='" & Sheets(i).Name & "'!R30C6"
-
- End With
- Next i
- With ActiveChart
- .HasTitle = True
- .ChartTitle.Characters.Text = "Récapitulatif des chantiers ( Totaux généraux HT )"
- .Axes(xlCategory, xlPrimary).HasTitle = False
- .Axes(xlValue, xlPrimary).HasTitle = False
- .HasLegend = True
- .Legend.Select
- Selection.Position = xlTop
- Selection.Left = 57
- Selection.Width = 469
- Selection.Width = 514
- Selection.Height = 82
- End With
-
-
-
-
- ActiveChart.SeriesCollection(1).Delete
- ActiveChart.Export Filename:="Graphique.png", FilterName:="png"
- ActiveChart.Location Where:=xlLocationAsObject, Name:="Total"
-
- End Sub
|
et je voudrais plus ça
Message édité par sakuraba le 15-11-2005 à 16:35:24