1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| Sub data1vsdatas()
'
' data1vsdatas Macro
' Macro enregistrée le 04/12/2005 par Administrateur
'
'
Columns("FX:FX").Select
ActiveWindow.SmallScroll ToRight:=27
Range("FX:FX,HD:HD,HE:HE,GY:GY").Select
Range("GY1").Activate
Charts.Add
ActiveChart.ChartType = xlLine
ActiveChart.SetSourceData Source:=Sheets("TOTO_1").Range( _
"FX1:FX6467,GY1:GY6467,HD1:HE6467"), PlotBy:=xlColumns
ActiveChart.Location Where:=xlLocationAsNewSheet, Name:="DATA vs DATAS 234"
With ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = "DATA1 vs DATAs 2;3;4"
.Axes(xlCategory, xlPrimary).HasTitle = False
.Axes(xlValue, xlPrimary).HasTitle = False
End With
ActiveChart.SeriesCollection(4).Select
ActiveChart.SeriesCollection(4).AxisGroup = 2
ActiveChart.SeriesCollection(3).Select
ActiveChart.SeriesCollection(3).AxisGroup = 2
ActiveChart.SeriesCollection(2).Select
ActiveChart.SeriesCollection(2).AxisGroup = 2
ActiveChart.Legend.Select
Selection.Left = 449
Selection.Top = 1
Selection.Width = 269
Selection.Height = 38
ActiveChart.ChartTitle.Select
Selection.Left = 42
Selection.Top = 2
ActiveChart.ChartArea.Select
ActiveChart.Legend.Select
Selection.Left = 303
Selection.Width = 409
ActiveChart.PlotArea.Select
Selection.Width = 707
With Selection.Border
.ColorIndex = 16
.Weight = xlThin
.LineStyle = xlContinuous
End With
Selection.Interior.ColorIndex = xlNone
ActiveChart.Legend.Select
ActiveChart.Legend.LegendEntries(3).LegendKey.Select
With Selection.Border
.ColorIndex = 3
.Weight = xlThin
.LineStyle = xlContinuous
End With
With Selection
.MarkerBackgroundColorIndex = xlNone
.MarkerForegroundColorIndex = xlNone
.MarkerStyle = xlNone
.Smooth = False
.MarkerSize = 3
.Shadow = False
End With
End Sub |
Partager