Sub AjouterColonneGraph()
'
' Macro1 Macro
' Macro recorded 30/10/2008 by Consolis
'
Dim adr As String
ligne = 3
Sheets("Group").Select
With Sheets("Group")
For n = 8 To 256
If .Cells(ligne, n) = "" Then
.Columns(n).Insert
.Cells(ligne, n - 1).Select
Selection.AutoFill Destination:=Range(Cells(ligne, n), Cells(ligne, n - 1)), Type:=x1FillDefault
.Range(Cells(ligne, n), Cells(ligne, n - 1)).Select
ActiveWindow.Visible = False
Windows("GRAPHSTest1.xls").Activate
ActiveSheet.ChartObjects("Chart 4").Activate
ActiveChart.ChartArea.Select
adr = Union(Range("$F$3,$H$3:$AD$3,$F$5:$F$11"), Range(Sheets("Group").Cells(5, 8), Sheets("Group").Cells(11, n))).Address
ActiveChart.SetSourceData Source:=Sheets("Group").Range(adr), PlotBy:=xlRows
ActiveWindow.Visible = False
Windows("GRAPHSTest1.xls").Activate
ActiveSheet.ChartObjects("Chart 15").Activate
ActiveChart.ChartArea.Select
adr = Union(Range("$F$3,$H$3:$AD$3,$F$43:$F$48"), Range(Sheets("Group").Cells(43, 8), Sheets("Group").Cells(48, n))).Address
ActiveChart.SetSourceData Source:=Sheets("Group").Range(adr), PlotBy:=xlRows
ActiveWindow.Visible = False
Windows("GRAPHSTest1.xls").Activate
ActiveSheet.ChartObjects("Chart 16").Activate
ActiveChart.ChartArea.Select
adr = Union(Range("$F$3,$H$3:$AD$3,$F$82:$F$88"), Range(Sheets("Group").Cells(82, 8), Sheets("Group").Cells(88, n))).Address
ActiveChart.SetSourceData Source:=Sheets("Group").Range(adr), PlotBy:=xlRows
ActiveWindow.Visible = False
Windows("GRAPHSTest1.xls").Activate
ActiveSheet.ChartObjects("Chart 22").Activate
ActiveChart.ChartArea.Select
adr = Union(Range("$F3,$H3:$AD$3,$F$126:$F$132"), Range(Sheets("Group").Cells(126, 8), Sheets("Group").Cells(132, n))).Address
ActiveChart.SetSourceData Source:=Sheets("Group").Range(adr), PlotBy:=xlRows
Exit For
End If
Next n
Application.Run ("MNU_eTOOLS_REFRESH") 'Application.RUN ("OnMnuReadComment")
'Keyboard Shortcut: Ctrl+t
End With
End Sub