I need to transfer one graph several times between sheets.
The graph takes data from a table and the data in the table changes based on a selection from a list.
The macro loops through this list and within each loop copy/pastes the graph as a picture to a new sheet.
The code for copy/paste
Worksheets(redemp).ChartObjects("Chart 6").Copy
pasteRow = pasteRow + 24
Worksheets(pdf).Cells(pasteRow, pasteCol + 1).PasteSpecial xlPasteValues
Is there a better way of transferring the graph between sheets than copy/paste?
When I run the macro (via a VB script which is run via Task Scheduler) and another Excel workbook is already opened VBA throws PasteSpecial method of Range class failed. It only breaks down for chart objects.