0
0
Excelspreadsheet~20 mins

Formatting chart appearance in Excel - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Chart Formatting Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
Change Chart Title Text Color
You have a chart with the title in cell A1. Which formula or method will change the chart title text color to red using Excel VBA?
Excel
Sub ChangeTitleColor()
    ActiveChart.ChartTitle.Font.Color = RGB(255, 0, 0)
End Sub
AActiveChart.ChartTitle.Font.Color = "Red"
BActiveChart.ChartTitle.Font.Color = #FF0000
CActiveChart.ChartTitle.Font.Color = Color.Red
DActiveChart.ChartTitle.Font.Color = RGB(255, 0, 0)
Attempts:
2 left
💡 Hint
Use the RGB function to specify colors in VBA.
Function Choice
intermediate
2:00remaining
Select the Correct Method to Change Chart Background Color
Which VBA property correctly changes the background color of an Excel chart area to light blue?
AActiveChart.ChartArea.BackgroundColor = RGB(173, 216, 230)
BActiveChart.ChartArea.Format.Fill.ForeColor.RGB = RGB(173, 216, 230)
CActiveChart.Fill.ForeColor = RGB(173, 216, 230)
DActiveChart.PlotArea.Fill.Color = RGB(173, 216, 230)
Attempts:
2 left
💡 Hint
The ChartArea's Format.Fill.ForeColor property controls the background color.
🎯 Scenario
advanced
3:00remaining
Apply Gradient Fill to Chart Plot Area
You want to apply a vertical gradient fill from white to green on the plot area of a chart using VBA. Which code snippet will achieve this?
A
With ActiveChart.PlotArea.Format.Fill
    .Visible = msoTrue
    .ForeColor.RGB = RGB(255, 255, 255)
    .BackColor.RGB = RGB(0, 128, 0)
    .TwoColorGradient msoGradientVertical, 1
End With
B
ActiveChart.PlotArea.Fill.GradientStyle = msoGradientVertical
ActiveChart.PlotArea.Fill.ForeColor.RGB = RGB(255, 255, 255)
ActiveChart.PlotArea.Fill.BackColor.RGB = RGB(0, 128, 0)
C
ActiveChart.PlotArea.Format.Fill.GradientStyle = msoGradientHorizontal
ActiveChart.PlotArea.Format.Fill.ForeColor.RGB = RGB(255, 255, 255)
ActiveChart.PlotArea.Format.Fill.BackColor.RGB = RGB(0, 128, 0)
D
With ActiveChart.PlotArea.Fill
    .Visible = True
    .ForeColor.RGB = RGB(0, 128, 0)
    .BackColor.RGB = RGB(255, 255, 255)
    .TwoColorGradient msoGradientVertical, 1
End With
Attempts:
2 left
💡 Hint
Use the Format.Fill object and the TwoColorGradient method with vertical style.
data_analysis
advanced
2:00remaining
Identify the Effect of Chart Legend Position Code
What will be the position of the chart legend after running this VBA code? ActiveChart.Legend.Position = xlLegendPositionBottom
AThe legend will appear below the chart.
BThe legend will appear to the right of the chart.
CThe legend will appear above the chart.
DThe legend will be hidden.
Attempts:
2 left
💡 Hint
The constant xlLegendPositionBottom places the legend at the bottom.
🧠 Conceptual
expert
3:00remaining
Understanding Chart Axis Formatting Impact
If you run the following VBA code on a chart, what will be the visible effect on the horizontal axis? With ActiveChart.Axes(xlCategory) .MajorTickMark = xlTickMarkNone .TickLabelPosition = xlTickLabelPositionNone End With
AThe horizontal axis will show labels but no tick marks.
BThe horizontal axis will show tick marks but no labels.
CThe horizontal axis will show no tick marks and no labels.
DThe horizontal axis will remain unchanged.
Attempts:
2 left
💡 Hint
Both MajorTickMark and TickLabelPosition control the visibility of ticks and labels.