Sub Copyallcharts() Call CopyChart("BE") Call CopyChart("NL") End Sub Sub CopyChart(sCountry As String) Dim oWSChartImport As Worksheet Dim oWSChartExport As Worksheet Dim oSHPChart As ChartObject Dim sRange As String Select Case sCountry Case "BE" sRange = "A3" Case "NL" sRange = "A30" End Select 'copy chart Set oSHPChart = ThisWorkbook.Sheets("CHART_" & sCountry).ChartObjects("CHART_" & sCountry & "_ALL") oSHPChart.chart.ChartArea.Copy 'trying to paste it, but it does not work ThisWorkbook.Sheets("CHART_ALL").Range(sRange).Paste End Sub
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE