0
0
Excelspreadsheet~20 mins

Moving and resizing charts in Excel - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Chart Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🎯 Scenario
intermediate
2:00remaining
Move a chart to a new worksheet
You have a chart embedded in Sheet1. You want to move it to a new chart sheet named "SalesChart". Which Excel action or method will do this correctly?
ARight-click the chart, select 'Move Chart...', then choose 'New sheet' and enter 'SalesChart'.
BCut the chart, create a new worksheet named 'SalesChart', then paste the chart there.
CDrag the chart tab to a new position and rename it to 'SalesChart'.
DCopy the chart, insert a new worksheet named 'SalesChart', then paste the chart as a picture.
Attempts:
2 left
💡 Hint
Look for the built-in option to move charts to a new sheet.
📊 Formula Result
intermediate
2:00remaining
Resize a chart using VBA code
You run this VBA code to resize a chart named 'Chart 1' on Sheet1: Sub ResizeChart() Worksheets("Sheet1").ChartObjects("Chart 1").Width = 400 Worksheets("Sheet1").ChartObjects("Chart 1").Height = 300 End Sub What will be the width and height of the chart after running this code?
Excel
Sub ResizeChart()
  Worksheets("Sheet1").ChartObjects("Chart 1").Width = 400
  Worksheets("Sheet1").ChartObjects("Chart 1").Height = 300
End Sub
AWidth and Height remain unchanged
BWidth = 300 points, Height = 400 points
CWidth = 400 points, Height = 300 points
DCode causes a runtime error because of wrong chart name
Attempts:
2 left
💡 Hint
Width and Height properties set the size in points.
Function Choice
advanced
2:00remaining
Which VBA property moves a chart?
You want to move a chart object named 'SalesChart' on Sheet2 to the left by 50 points and down by 30 points using VBA. Which property should you modify?
AModify the .Left and .Top properties of the ChartObject
BModify the .Width and .Height properties of the ChartObject
CModify the .Location property of the ChartObject
DModify the .Position property of the ChartObject
Attempts:
2 left
💡 Hint
Think about properties that control position on the sheet.
📊 Formula Result
advanced
2:00remaining
Effect of resizing chart with negative values
What happens if you run this VBA code? Sub ResizeNegative() Worksheets("Sheet1").ChartObjects("Chart 1").Width = -100 Worksheets("Sheet1").ChartObjects("Chart 1").Height = -50 End Sub
Excel
Sub ResizeNegative()
  Worksheets("Sheet1").ChartObjects("Chart 1").Width = -100
  Worksheets("Sheet1").ChartObjects("Chart 1").Height = -50
End Sub
AChart size becomes zero width and height
BChart resizes to 100 width and 50 height (absolute values)
CChart size remains unchanged
DRuntime error: Invalid property value
Attempts:
2 left
💡 Hint
Width and Height cannot be negative numbers.
data_analysis
expert
3:00remaining
Analyze chart position after multiple moves
A chart on Sheet3 has initial .Left = 100 and .Top = 150. You run this VBA code: With Worksheets("Sheet3").ChartObjects("Chart 1") .Left = .Left + 50 .Top = .Top - 20 .Left = .Left - 30 .Top = .Top + 10 End With What are the final .Left and .Top values of the chart?
Excel
With Worksheets("Sheet3").ChartObjects("Chart 1")
  .Left = .Left + 50
  .Top = .Top - 20
  .Left = .Left - 30
  .Top = .Top + 10
End With
A.Left = 150, .Top = 140
B.Left = 120, .Top = 140
C.Left = 120, .Top = 160
D.Left = 150, .Top = 160
Attempts:
2 left
💡 Hint
Add and subtract the changes step by step.