Hi Andy!
Andy Pope wrote:
> You did mention you where using code. Try this to create a blank chart
> sheet.
> Set chtTemp = Sheet1.ChartObjects.Add(1, 1, 200, 200).Chart
> chtTemp.Location Where:=xlLocationAsNewSheet
Thanks a lot! This is 95% of the solution I was looking for, and
probably the best Excel can do

Unfortunately, the Location method creates a copy of the chart object
and renders the old chart object returned by Add().Chart
obsolete/invalid. Also, the documentation does not say where the
"xlLocationAsNewSheet" inserts the chart. I *assume* it will always be
at Workbook.Charts(Workbook.Charts.Count + 1) and of course increase the
Charts Count. So I have to get a new handle to my chart by accessing
Workbook.Charts(Workbook.Charts.Count) after moving the chart.
What I did in the end was this:
Dim dummyWs As WorkSheet
Dim myChart As Chart
Set dummyWs = ActiveWorkbook.Worksheets.Add
dummyWs.ChartObjects.Add(1, 50, 100, 50).Chart.Location
xlLocationAsNewSheet, "my chart in a new sheet"
Set myChart = ActiveWorkbook.Charts(ActiveWorkbook.Charts.Count)
' do stuff with myChart
This gets the job done, so thank you very much!
Best Regards,
Lars