I think that I'm getting close. I can get the number of variables per chart using the code below but when I try to run I get an exception when I cast the seriesCollection.item to a string.
vb Code:
Public Function GetCharts() As TreeNode
Dim parentNode As TreeNode = Nothing
Try
For Each oCht As Excel.Chart In oExcel.Workbooks(1).Charts
Dim var As String
parentNode = New TreeNode(oCht.Name)
Dim cnt As Integer = CType(oCht.SeriesCollection, Excel.SeriesCollection).Count
For i As Integer = 1 To cnt
var = CStr(CType(oCht.SeriesCollection, Excel.SeriesCollection).Item(i))
parentNode.Nodes.Add(var)
Next
Next
Catch ex As Exception
MessageBox.Show("GetCharts.GetVariables: " & ex.Message.ToString)
End Try
Return parentNode
End Function