View Single Post
  #2  
Old March 25th, 2010, 08:35 AM posted to microsoft.public.excel.charting
Andy Pope
external usenet poster
 
Posts: 2,088
Default VBA code to chaneg axis text on a chart?

Hi,

These work for me,

activechart.Axes(xlcategory,xlPrimary).hastitle=tr ue
activechart.Axes(xlcategory,xlPrimary).axistitle.t ext="Category Axis"
activechart.Axes(xlvalue,xlPrimary).hastitle=true
activechart.Axes(xlValue,xlPrimary).axistitle.text ="Value Axis"

What exactly does 'doesn't work' mean. Do you get an error message?

Cheers
Andy

On 24/03/2010 20:35, Newbie wrote:
I've tried this but it doesn't work:

.Axes(xlValue).AxisTitle.Text = "EE"

Thanks in advance to whomever can help!


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info