Complete the code to select a chart named "SalesChart" in Excel VBA.
ActiveSheet.ChartObjects("[1]").Select
The chart named "SalesChart" is selected by using ActiveSheet.ChartObjects("SalesChart").Select.
Complete the code to move the selected chart to the left by 50 points.
ActiveChart.Parent.[1] = ActiveChart.Parent.Left - 50
To move a chart left, adjust its Left property by subtracting points.
Fix the error in the code to resize the chart's height to 300 points.
ActiveChart.Parent.[1] = 300
The Height property sets the vertical size of the chart.
Fill both blanks to move the chart 20 points down and increase its width by 100 points.
ActiveChart.Parent.[1] = ActiveChart.Parent.Top + 20 ActiveChart.Parent.[2] = ActiveChart.Parent.Width + 100
Top controls vertical position, Width controls horizontal size.
Fill all three blanks to select a chart named "ProfitChart", move it 30 points right, and set its height to 250 points.
ActiveSheet.ChartObjects("[1]").Select ActiveChart.Parent.[2] = ActiveChart.Parent.Left + 30 ActiveChart.Parent.[3] = 250
Select the chart by name, then adjust Left to move right and Height to resize vertically.