Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Change Axis Title

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Change Axis Title

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.


" 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Change Axis Title

On Jan 7, 4:42*pm, JLGWhiz 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.



" 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
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
Axis title Marianne Charts and Charting in Excel 3 September 24th 08 01:10 PM
I cannot enlarge the axis title box, the cursor won't change Orca Charts and Charting in Excel 1 November 13th 05 11:11 AM
Pasting Objects into Chart title and Axis title Sam Charts and Charting in Excel 1 June 6th 05 08:50 PM
How do I change the size of Value Axis Title box for an Excel Cha. LISSJMC Charts and Charting in Excel 1 April 11th 05 03:36 PM
Y-axis title Bagheera Charts and Charting in Excel 2 December 8th 04 03:22 PM


All times are GMT +1. The time now is 06:27 AM.

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"