XL5: GET.FORMULA Doesn't Return Chart Title Text |
In Microsoft Excel, when you use the GET.FORMULA function in a MS Excel 4.0 macro to return a chart title, no text is returned.
This behavior occurs when you use the GET.FORMULA function with the "title" argument to return a chart title as in the following example:
=GET.FORMULA("title")
In Microsoft Excel version 4.0, this command returns the title of the
active chart. However, when you use this command in Microsoft Excel
version 5.0, no text is returned.
To return the title of a chart using a macro, do either of the following:
(Note that the following should be entered as one line)
A1: =RUN("'application.activeworkbook.names.add
""charttitle"",Sheets(""Chart1"").ChartTitle.Text'")
A2: =ALERT(charttitle)
MsgBox (Charts("chart1").ChartTitle.Text) Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Excel version 5.0c for Windows.
You can use the GET.FORMULA function to return the contents of a cell as it would appear in the formula bar. Although it is not documented, when you use the GET.FORMULA function with the "title" argument in Microsoft Excel version 4.0, the title of the active chart is returned.
For more information about GET.FORMULA, choose the Search button in the Microsoft Excel Macro Functions Help and type:
GET.FORMULA function
Additional query words:
Keywords :
Version : 5.00
Platform : WINDOWS
Issue type :
Technology :
|
Last Reviewed: September 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |