1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| NumCode
Dim Im As Picture
Dim NmPhoto As String
Selection.ShapeRange.Group.Select
Selection.ShapeRange.LockAspectRatio = msoTrueSelection.ShapeRange.Height = 567#
Selection.ShapeRange.IncrementLeft -500#
Selection.ShapeRange.IncrementTop -500#
Selection.Copy
NmPhoto = Sheets("RgptPh").Range("A1").Value
'MsgBox "Photo numéro" & NmPhoto & ""
'MsgBox "Export NmChemin2 & "BasePlusA\" & NmPhoto & ".jpeg""
With ActiveSheet.ChartObjects.Add(0, 0, Selection.Width, Selection.Height).Chart
.ChartArea.Border.LineStyle = 0
.Paste
.Export NmChemin2 & "BasePlusA\" & NmPhoto & ".jpeg"
Excel.Run ("SuppressionAgr")
End With
End Sub |
Partager