ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copy/Paste charts (https://www.excelbanter.com/excel-programming/332372-copy-paste-charts.html)

Rui

Copy/Paste charts
 
Hi,

i´m trying to copy a selection of charts from a workbook to another. Here´s
my yet-to-be-over lines:

Windows("BDs.xls").Activate
ActiveSheet.ChartObjects("Chart 11").Activate
ActiveSheet.Shapes.Range(Array("Chart 11", "Chart 12", "Chart 13",
"Chart 14" _
, "Chart 15", "Chart 16")).Select
Selection.Copy
Windows(F).Activate
ActiveSheet.PasteSpecial Format:="Picture (Enhanced Metafile)",
Link:=False _
, DisplayAsIcon:=False

As i see it, when i run the macro, it only copies the first chart, and then
it bugs when tries to paste.

can anyone help me?
thanks,
Rui


All times are GMT +1. The time now is 01:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com