Changing types of charts.

A

Axiom

I am new to vb. So please bear with me. I thought that I could jus
change the type of chart to plot and excel would comply. What did I d
wrong and how can I fix it?

With WS.ChartObjects.Add _
(Left:=100, Width:=375, Top:=75, Height:=225)
*.Chart.ChartType = xlBar*
.Chart.SetSourceData Source:=WS.UsedRange
End With

So I changed the xlBar from xlpie. It likes the pie one, but error
out on the xlBar one

-Axio
 
J

Jon Peltier

xlBar isn't a valid chart type constant. If you used xlBarClustered or
xlBarStacked, you'd already have your chart.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top