Link to home
Start Free TrialLog in
Avatar of victoriaharry
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.AddChart.select
ActiveChart.setSourceData Source:=Range("'Quality'!$A$19:$D$28")
ActiveChart.ApplyChartTemplate("Quality.crtx")
ActiveChart.ChartTitle.Text = "Quality"

Thanks heaps

Gav
ASKER CERTIFIED SOLUTION
Avatar of krishnakrkc
krishnakrkc
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial