Setting maximum and Minimum Scale for the Category axis

A

Ayo

I know how to set the xlValue for charts but I am having a problem setting
the xlCategory property. I get and error when I try:
..Axes(xlCategory).MinimumScale
What is the best way to do this?
Thanks.

With Me.ChartObjects("WeeklyChart").Chart
.Axes(xlValue).MinimumScale = minScale
.Axes(xlValue).MaximumScale = maxScale
.Axes(xlValue).MajorUnit = maxScale / 2
.Axes(xlValue).MinorUnit = maxScale / 4
.HasTitle = True
.ChartTitle.Text = Range("B3") & " " & " Actuals - NLP2"
End With
 

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