Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / February 2008

Tip: Looking for answers? Try searching our database.

Obtain the data source Axis Title

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gilles P (FR) - 06 Feb 2008 15:47 GMT
Hello,

With standard interactive ExcelGraph, I create a title of axis wich is the
cell value of a worksheet
by a formula "=Sheet1!R1C1"
To obtain an axe title linked with the cell value

How with VBA can i read this formula ?
the property "Axes(xlValue, xlPrimary).AxisTitle.Text " give the value of
R1C1 and not the formula ?

Thanks

Gilles PROVOST (FR)
Dave D-C - 06 Feb 2008 17:01 GMT
I haven't tried this, but how about
 Dim s1$, sFormula$
 s1 = Axes(xlValue, xlPrimary).AxisTitle.Text
 sFormula = Range(s1).Formula
Dave D-C

>Hello,
>
[quoted text clipped - 10 lines]
>
>Gilles PROVOST (FR)
Gilles P (FR) - 06 Feb 2008 17:22 GMT
Sorry but,
That's doesn't work

S1 return the value (and not the formula)
And so Range(S1).formula gives an error by "property method error"

regards,

Gilles P (FR)

> I haven't tried this, but how about
>   Dim s1$, sFormula$
[quoted text clipped - 16 lines]
> >
> >Gilles PROVOST (FR)
Andy Pope - 07 Feb 2008 15:45 GMT
Hi,

Try this with an active chart,

msgbox ExecuteExcel4Macro("GET.FORMULA(""Title"")")

Apparently does not work in xl2007.

Cheers
Andy

> Hello,
>
[quoted text clipped - 10 lines]
>
> Gilles PROVOST (FR)

Signature

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.