Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 137
Default VBA code to chaneg axis text on a chart?

I've tried this but it doesn't work:

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

Thanks in advance to whomever can help!

  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,489
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

  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 137
Default VBA code to chaneg axis text on a chart?

Andy Pope rocks!!!!!!!!!!!!!!!!!!!!!!!
Again you saved the day!
It works! Thank you sooooooooo much!!!


"Andy Pope" wrote:

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

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bubble Chart with text as description of an axis schleimer Charts and Charting in Excel 2 April 16th 08 08:43 AM
text label in x-axis (scatter chart) [email protected] Charts and Charting in Excel 2 June 20th 06 10:48 PM
Scatter chart with text labels as Y axis? Charles Blaquière Charts and Charting in Excel 2 June 2nd 06 04:37 AM
Scatter Chart Axis as text in C# Web appl Pavr1 Charts and Charting in Excel 1 March 31st 05 05:28 AM
Scatter Chart Axis as text C# Pablo Villalobos via OfficeKB.com Charts and Charting in Excel 1 March 18th 05 11:10 PM


All times are GMT +1. The time now is 03:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"