PC Review


Reply
Thread Tools Rate Thread

Change Axis Title

 
 
demusoli@googlemail.com
Guest
Posts: n/a
 
      7th Jan 2008
Hello, I am trying to find a way, to change Axis titles via VBA. But I
can only select those. Can anybody help?

Thanks in advance,
Oliver
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      7th Jan 2008
This is in VBA help files:

For the X axis:

With Charts("Chart1").Axes(xlCategory)
.HasTitle = True
.AxisTitle.Text = "July Sales"
End With

For the Y axis change xlCategory to xlValue, and of course, the title.


"(E-Mail Removed)" wrote:

> Hello, I am trying to find a way, to change Axis titles via VBA. But I
> can only select those. Can anybody help?
>
> Thanks in advance,
> Oliver
>

 
Reply With Quote
 
demusoli@googlemail.com
Guest
Posts: n/a
 
      8th Jan 2008
On Jan 7, 4:42*pm, JLGWhiz <JLGW...@discussions.microsoft.com> wrote:
> This is inVBAhelp files:
>
> For the Xaxis:
>
> With Charts("Chart1").Axes(xlCategory)
> * * .HasTitle = True
> * * .AxisTitle.Text = "July Sales"
> End With
>
> For the YaxischangexlCategory to xlValue, and of course, thetitle.
>
>
>
> "demus...@googlemail.com" wrote:
> > Hello, I am trying to find a way, tochangeAxistitles viaVBA. But I
> > can only select those. Can anybody help?

>
> > Thanks in advance,
> > Oliver- Hide quoted text -

>
> - Show quoted text -


Thanks, that worked,
Oliver
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Chart Title and Axis title and Legend iccsi Microsoft Access Reports 1 16th Dec 2008 01:22 PM
I cannot enlarge the axis title box, the cursor won't change =?Utf-8?B?T3JjYQ==?= Microsoft Excel Charting 1 13th Nov 2005 11:11 AM
Pasting Objects into Chart title and Axis title =?Utf-8?B?U2Ft?= Microsoft Excel Charting 1 6th Jun 2005 08:50 PM
How do I change the size of Value Axis Title box for an Excel Cha. =?Utf-8?B?TElTU0pNQw==?= Microsoft Excel Charting 1 11th Apr 2005 03:36 PM
Aligning title, legend, x axis title on chart Ann Scharpf Microsoft Excel Charting 1 11th Nov 2003 06:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:10 AM.