Bird
Raised Fist0
Excelspreadsheet~10 mins

Moving and resizing charts in Excel - Interactive Code Practice

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to select a chart named "SalesChart" in Excel VBA.

Excel
ActiveSheet.ChartObjects("[1]").Select
Drag options to blanks, or click blank then click option'
AProfitChart
BRevenueChart
CSalesChart
DExpenseChart
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong chart name.
Forgetting to put the chart name in quotes.
Using Sheets instead of Charts.
2fill in blank
medium

Complete the code to move the selected chart to the left by 50 points.

Excel
ActiveChart.Parent.[1] = ActiveChart.Parent.Left - 50
Drag options to blanks, or click blank then click option'
ATop
BLeft
CHeight
DWidth
Attempts:
3 left
💡 Hint
Common Mistakes
Using Top instead of Left for horizontal movement.
Adding instead of subtracting to move left.
Trying to set position without selecting the chart.
3fill in blank
hard

Fix the error in the code to resize the chart's height to 300 points.

Excel
ActiveChart.Parent.[1] = 300
Drag options to blanks, or click blank then click option'
AHeight
BWidth
CLeft
DTop
Attempts:
3 left
💡 Hint
Common Mistakes
Using Width instead of Height.
Trying to set position properties instead of size.
Not selecting the chart before resizing.
4fill in blank
hard

Fill both blanks to move the chart 20 points down and increase its width by 100 points.

Excel
ActiveChart.Parent.[1] = ActiveChart.Parent.Top + 20
ActiveChart.Parent.[2] = ActiveChart.Parent.Width + 100
Drag options to blanks, or click blank then click option'
ATop
BLeft
CWidth
DHeight
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up Top and Left properties.
Using Height instead of Width for resizing width.
Subtracting instead of adding values.
5fill in blank
hard

Fill all three blanks to select a chart named "ProfitChart", move it 30 points right, and set its height to 250 points.

Excel
ActiveSheet.ChartObjects("[1]").Select
ActiveChart.Parent.[2] = ActiveChart.Parent.Left + 30
ActiveChart.Parent.[3] = 250
Drag options to blanks, or click blank then click option'
AProfitChart
BLeft
CHeight
DSalesChart
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong chart name.
Mixing up Left and Top properties.
Setting Width instead of Height.

Practice

(1/5)
1. What happens when you click and drag the border of a chart in Excel?
easy
A. The chart deletes automatically.
B. The chart resizes proportionally.
C. The chart moves to a new location on the sheet.
D. The chart changes its data source.

Solution

  1. Step 1: Understand chart border dragging

    Clicking and dragging the border of a chart moves it around the sheet without changing its size.
  2. Step 2: Differentiate from resizing

    Resizing happens when dragging corner or edge handles, not the border itself.
  3. Final Answer:

    The chart moves to a new location on the sheet. -> Option C
  4. Quick Check:

    Dragging border = move chart [OK]
Hint: Drag chart border to move it anywhere on the sheet [OK]
Common Mistakes:
  • Confusing dragging border with resizing handles
  • Thinking dragging border deletes the chart
  • Assuming dragging border changes data
2. Which action correctly resizes a chart in Excel while keeping its proportions?
easy
A. Drag a corner handle while holding Shift key.
B. Click the chart and press arrow keys.
C. Drag an edge handle without any key.
D. Drag the chart border while holding Shift key.

Solution

  1. Step 1: Identify resizing with proportion

    Holding the Shift key while dragging a corner handle keeps the chart's proportions.
  2. Step 2: Differentiate from other actions

    Dragging border moves chart; edge handles resize but may distort; arrow keys move chart slightly.
  3. Final Answer:

    Drag a corner handle while holding Shift key. -> Option A
  4. Quick Check:

    Shift + corner drag = proportional resize [OK]
Hint: Hold Shift and drag corner handle to resize proportionally [OK]
Common Mistakes:
  • Dragging border instead of handles to resize
  • Not holding Shift and distorting chart
  • Using edge handles for proportional resize
3. You have a chart selected in Excel. You press the right arrow key three times. What happens to the chart?
medium
A. The chart resizes wider by three units.
B. The chart moves three small steps to the right.
C. The chart rotates clockwise three times.
D. The chart's data updates to the right column.

Solution

  1. Step 1: Understand arrow key effect on chart

    Pressing arrow keys moves the selected chart slightly in the arrow's direction.
  2. Step 2: Confirm no resizing or rotation

    Arrow keys do not resize or rotate charts; they only move them.
  3. Final Answer:

    The chart moves three small steps to the right. -> Option B
  4. Quick Check:

    Arrow keys = move chart [OK]
Hint: Use arrow keys to nudge chart position in small steps [OK]
Common Mistakes:
  • Thinking arrow keys resize or rotate chart
  • Assuming arrow keys change chart data
  • Confusing movement with resizing
4. You try to resize a chart by dragging its edge handle while holding the Shift key, but the chart distorts instead of keeping proportions. What is the likely mistake?
medium
A. You dragged an edge handle instead of a corner handle.
B. You did not select the chart before resizing.
C. You pressed arrow keys instead of dragging.
D. You dragged the chart border instead of handles.

Solution

  1. Step 1: Identify correct handle for proportional resize

    Only dragging a corner handle with Shift keeps proportions; edge handles distort.
  2. Step 2: Exclude other mistakes

    Chart must be selected; arrow keys move, not resize; dragging border moves chart.
  3. Final Answer:

    You dragged an edge handle instead of a corner handle. -> Option A
  4. Quick Check:

    Shift + corner handle = proportional resize [OK]
Hint: Always drag corner handle with Shift for proportional resize [OK]
Common Mistakes:
  • Dragging edge handle with Shift expecting proportional resize
  • Not selecting chart before resizing
  • Confusing dragging border with resizing
5. You want to move a chart exactly 5 cells to the right and 3 cells down using the keyboard. Which sequence of keys should you press?
hard
A. Drag the chart border 5 cells right and 3 cells down with mouse.
B. Hold Shift and drag the chart 5 cells right and 3 cells down.
C. Press the left arrow key 5 times, then the up arrow key 3 times.
D. Press the right arrow key 5 times, then the down arrow key 3 times.

Solution

  1. Step 1: Understand keyboard movement of charts

    Pressing arrow keys moves the chart one small step per press in that direction.
  2. Step 2: Apply correct sequence for desired move

    Press right arrow 5 times to move right 5 steps, then down arrow 3 times to move down 3 steps.
  3. Final Answer:

    Press the right arrow key 5 times, then the down arrow key 3 times. -> Option D
  4. Quick Check:

    Arrow keys move chart stepwise [OK]
Hint: Use arrow keys repeatedly to move chart precisely [OK]
Common Mistakes:
  • Using mouse drag instead of keyboard for exact moves
  • Holding Shift while dragging to move (Shift resizes proportionally)
  • Pressing wrong arrow keys for direction