Hi all.
>From a sheet with sourcedata I generate graphs for each row. Right now
Hi,
You can try this.
Sub NoAdjacentSeries()
'
' Note: This will fail if the Series formula is too long
'
Dim rngTemp As Range
Dim rngArea As Range
Dim strData As String
Dim strJoin As String
Set rngTemp = Range("E3,H3,K3,N3,Q3,T3,W3,Z3,AC3,AF3,AI3,AL3")
strJoin = "=("
For Each rngArea In rngTemp.Areas
strData = strData & strJoin & "'" & _
rngArea.Parent.Name & "'!" & _
rngArea.Address(ReferenceStyle:=xlR1C1)
strJoin = ","
Next
strData = strData & ")"
ActiveChart.SeriesCollection(1).Values = strData
End Sub
Cheers
Andy
> Hi all.
>>From a sheet with sourcedata I generate graphs for each row. Right now
[quoted text clipped - 19 lines]
> Thanx in advance.
> Hans

Signature
Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
Hans - 20 Jan 2006 11:19 GMT
Thank you Andy.
The resulting string-format in strData was de solution.
Hans
> Hi,
>
[quoted text clipped - 49 lines]
> > Thanx in advance.
> > Hans