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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
| Sub graph3()
'
' graph3 Macro
' Macro enregistrée le 21/05/2014 par vincent.trombetta
'
'
Charts.Add
ActiveChart.ChartType = xlXYScatterSmooth
ActiveChart.SetSourceData Source:=Sheets("COM_maxi_geophones_en_mms_VLT_1"). _
Range("E95")
Dim a As Integer
For a = 1 To 50
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(a).XValues = _
"=COM_maxi_geophones_en_mms_VLT_1!R" & a & "C5:R" & a & "C28"
ActiveChart.SeriesCollection(a).Values = _
"=COM_maxi_geophones_en_mms_VLT_1!R" & a & "C29:R" & a & "C52"
Next a
ActiveChart.Location Where:=xlLocationAsNewSheet
With ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = "onde V mb"
.Axes(xlCategory, xlPrimary).HasTitle = True
.Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text = "distance (m)"
.Axes(xlValue, xlPrimary).HasTitle = True
.Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "amplitude (mm/s)"
End With
Sheets("COM_maxi_geophones_en_mms_VLT_1").Select
Charts.Add
ActiveChart.ChartType = xlXYScatterSmooth
ActiveChart.SetSourceData Source:=Sheets("COM_maxi_geophones_en_mms_VLT_1"). _
Range("E95")
Dim b As Integer
For b = 51 To 71
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(b).XValues = _
"=COM_maxi_geophones_en_mms_VLT_1!R" & b & "C5:R" & b & "C28"
ActiveChart.SeriesCollection(b).Values = _
"=COM_maxi_geophones_en_mms_VLT_1!R" & b & "C29:R" & b & "C52"
Next b
ActiveChart.Location Where:=xlLocationAsNewSheet
With ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = "onde V mh"
.Axes(xlCategory, xlPrimary).HasTitle = True
.Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text = "distance (m)"
.Axes(xlValue, xlPrimary).HasTitle = True
.Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "amplitude (mm/s)"
End With
Sheets("COM_maxi_geophones_en_mms_VLT_1").Select
Charts.Add
ActiveChart.ChartType = xlXYScatterSmooth
ActiveChart.SetSourceData Source:=Sheets("COM_maxi_geophones_en_mms_VLT_1"). _
Range("E95")
Dim c As Integer
For c = 51 To 71
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(c).XValues = _
"=COM_maxi_geophones_en_mms_VLT_1!R" & c & "C5:R" & c & "C28"
ActiveChart.SeriesCollection(c).Values = _
"=COM_maxi_geophones_en_mms_VLT_1!R" & c & "C29:R" & c & "C52"
Next c
ActiveChart.Location Where:=xlLocationAsNewSheet
With ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = "onde V vp"
.Axes(xlCategory, xlPrimary).HasTitle = True
.Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text = "distance (m)"
.Axes(xlValue, xlPrimary).HasTitle = True
.Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "amplitude (mm/s)"
End With
End Sub |
Partager