victoriaharry
asked on
VBA - Moving and resizing chart
Hi Guys,
I have the code below which will create a chart based on a template. This works fine however the chart when enbedded on the worksheet is too small and in the wrong position.
Is there a way using VBA code to resize the chart and also move it to the correct position on the sheet. Also, the title and vertical axis comes out empty. I can set the title as seen below but can't work out how to set the vertical axis title
Range("A19:D28").Select
ActiveSheet.Shapes.AddChar t.select
ActiveChart.setSourceData Source:=Range("'Quality'!$ A$19:$D$28 ")
ActiveChart.ApplyChartTemp late("Qual ity.crtx")
ActiveChart.ChartTitle.Tex t = "Quality"
Thanks heaps
Gav
I have the code below which will create a chart based on a template. This works fine however the chart when enbedded on the worksheet is too small and in the wrong position.
Is there a way using VBA code to resize the chart and also move it to the correct position on the sheet. Also, the title and vertical axis comes out empty. I can set the title as seen below but can't work out how to set the vertical axis title
Range("A19:D28").Select
ActiveSheet.Shapes.AddChar
ActiveChart.setSourceData Source:=Range("'Quality'!$
ActiveChart.ApplyChartTemp
ActiveChart.ChartTitle.Tex
Thanks heaps
Gav
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.