Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default link chart axis title to cell?

Alternatively, remove ".Characters" and change to R1C1 notation:

.Axes(xlValue, xlPrimary).AxisTitle.Text = "=Sheet1!R24C5"

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"Chris" wrote in message
...
Thanks a lot Martin

"Martin" wrote:

VBA is a very different place to Excel and it has to talk a kind of
pidgin-English to be understood by Excel! Instead of Sheet1!E24 which is
pure Exceleeze you've got to say:

ActiveWorkbook.Sheets("Sheet1").Range("E24").Value

It's logical but kinda laborious...

"Chris" wrote:

When running a macro, how do I link a chart axis title such as the
y-axis to
a cell in a worksheet?

In the VBA section, the line of code for the title is:

.Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "Values"

I'm trying to link the word "Values" to a cell instead of a text
string. I
tried typing in Sheet1!E24 with and without quotes but it won't work.



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
link chart axis scale to spreadsheet cell value KRK New Users to Excel 1 March 30th 09 03:12 PM
Chart Axis Title via cell ref. ju1eshart Charts and Charting in Excel 2 December 5th 06 02:13 PM
Chart Y-Axis Title PelleritoConsultants Charts and Charting in Excel 1 October 17th 06 07:11 PM
How to link a chart title to a worksheet cell c#? Frank M. Walter Excel Programming 2 May 30th 06 05:27 PM
Pasting Objects into Chart title and Axis title Sam Charts and Charting in Excel 1 June 6th 05 08:50 PM


All times are GMT +1. The time now is 04:24 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"