If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 . |
Thread Tools | |
Display Modes | |
|
|