Create a Chart with VBA in Excel

Create a Chart with VBA in Excel. Add Chart title. Select location for your chart. Add axis labels. Select the type of chart that you require. Check out my templates page for free and purchased templates
Sub salesvalues()
Dim chtChart As Chart
‘Create a new chart.
Set chtChart = Charts.Add
Set chtChart = chtChart.Location(Where:=xlLocationAsObject, Name:=”Sheet1″)
With chtChart
‘.Name = “”

.ChartType = xlColumnClustered
‘Link to the source data range.
.SetSourceData Source:=Sheets(“Sheet1”).Range(“a2:b7”), _
.HasTitle = True
.ChartTitle.Text = “Sales by Customer”
.Axes(xlCategory, xlPrimary).HasTitle = True
.Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text = “Customer”
.Axes(xlValue, xlPrimary).HasTitle = True
.Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = “Total Sales”
End With
End Sub
For more help visit my website or email me at

Contact me regarding customizing this template for your needs.

Excel one-on-one on-line training available. Email me to arrange.

I am able to provide online help on your computer at a reasonable rate.

Check out my next one-hour Excel Webinar

I use a Blue condensor Microphone to record my videos, here is the link

Check out Crowdcast for creating your webinars

If you need to buy Office 2019 follow

I use Tube Buddy to help promote my videos
Check them out

Follow me on Facebook

Follow me on twitter

IG @barbhendersonconsulting

You can help and generate a translation to you own language

*this description may contain affiliate links. When you click them, I may receive a small commission at no extra cost to you. I only recommend products and services that I’ve used or have experience with.

Related Posts

How to Subtract a Percentage in Microsoft Excel : Microsoft Word & Excel

How to Subtract a Percentage in Microsoft Excel : Microsoft Word & Excel

Subscribe Now: Watch More: Subtracting a percentage in Microsoft Excel is something that is accomplished by comparing the values of two distinct cells in a table. Subtract a percentage in Microsoft Excel with help from a professional programmer, designer, and developer in this free video clip. Expert: Geoph Essex Filmmaker: Victor Varnado Series…

Language »
Thanks !

Thanks for sharing this, you are awesome !