Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
Thanks Andy.
I came up with this grubby but effective (so far) code: Dim sFormulae As String sFormulae = chtEvent.SeriesCollection(1).FormulaR1C1 ' worksheets can appear in the formulae in two forms: ' "=SERIES(Data!R1C2,Data!R2C1:R10C1,Data!R2C2:R10C2 ) ' "=SERIES('My Data'!R1C2,Data!R2C1:R10C1,Data!R2C2:R10C2) If InStr(sFormulae, "=SERIES('") 0 Then ' sheet name is enclosed in single quotes: Debug.Print "[" & Mid$(sFormulae, Len("=SERIES('") + 1, InStr (sFormulae, "'!") - Len("=SERIES('") - 1) & "]" Else ' sheet name is NOT enclosed in single quotes: Debug.Print "[" & Mid$(sFormulae, Len("=SERIES(") + 1, InStr (sFormulae, "!") - Len("=SERIES(") - 1) & "]" End If Chrisso |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Chart empty with new data in the dynamic range chart. | Excel Discussion (Misc queries) | |||
chart from pivot data does not update x-axis bar chart values - bug | Excel Discussion (Misc queries) | |||
How do you link chart source data when you copy the chart? | Charts and Charting in Excel | |||
Resizing chart because of refreshing Chart Data through a query | Charts and Charting in Excel | |||
Chart data file lost - need to re-create from chart? | Charts and Charting in Excel |