Public NomFich()
Sub stock()
ReDim NomFich(0)
Dim Nms As Name
Dim LeGraph As Object
Dim Fich As String
Application.ScreenUpdating = False
Dim Tablgifs()
N = 1
For Each sh In Sheets
ActiveWorkbook.Names.Add Name:="Fiche" & N, RefersToR1C1:="=" & sh.Name & "!R1C1:R27C3"
NomFich(UBound(NomFich)) = "Fiche" & N
ReDim Preserve NomFich(UBound(NomFich) + 1)
N = N + 1
Next
ReDim Preserve NomFich(UBound(NomFich) + 1)
For Each Nms In Names
If Left(Nms.Name, 5) = "Fiche" Then
Range(Nms.Name).CopyPicture
Set LeGraph = ActiveSheet.ChartObjects.Add(0, 0, Range(Nms.Name).Width, Range(Nms.Name).Height)
LeGraph.Chart.Paste
Fich = ActiveWorkbook.Path & "\" & Nms.Name & ".gif"
Next Imgif
LeGraph.Chart.Export Filename:=Fich, FilterName:="GIF"
LeGraph.Delete
End If
Next Nms
MsgBox (Tablgifs(i))
End Sub