How do I use VBA to add and format data labels

I have roughly 50 bars in an excel chart and below is some VBA that someone from experts exchange helped me to custom format the colors of the bars.  I would like to add to this and add data labels 8 pt aerial font with one decimal place.  Below is the code for one of the 50 points on the graph.  

I am happy to edit each one if necessary, but is it possible to create a macro that affects all the bars in terms of data labels.
Sub FormatChartPoints()
   Dim cht As Chart
   Dim n As Long
   Set cht = Charts("quintile chart")
   With cht.SeriesCollection(1)
      With .Points(1).Format
      With .Fill
         .Visible = msoTrue
         .ForeColor.RGB = RGB(0, 51, 204)
         .Transparency = 0
         .Solid
      End With
      With .Line
         .Visible = msoTrue
         .ForeColor.RGB = RGB(0, 0, 0)
         .ForeColor.TintAndShade = 0
    End With
    End With

Open in new window

majervisAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dlmilleCommented:
Just a couple additional lines - ensure datalabels are on, then set the numberformat and font.size:

 
Sub FormatChartPoints()
Dim cht As Chart
Dim n As Long

    Set cht = Charts("quintile chart")
   
    With cht.SeriesCollection(1)
        With .Points(1).Format
            With .Fill
            .Visible = msoTrue
            .ForeColor.RGB = RGB(0, 51, 204)
            .Transparency = 0
            .Solid
            End With
            With .Line
            .Visible = msoTrue
            .ForeColor.RGB = RGB(0, 0, 0)
            .ForeColor.TintAndShade = 0
            End With
        End With
        .HasDataLabels = True
        .DataLabels.NumberFormat = "##.0"
        .DataLabels.Font.Size = 8
    End With
End Sub

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.