Quote Originally Posted by dunfiddlin View Post
Try releasing the binding and reapplying it. Also where do pNumofSamples, pRange2 get set? If they do not change then you will indeed get the enumeration finished error (been there, done that, in other words!)

How would I go about releasing the binding, I have tried creating a sub that runs on each click event but after the data is stored in the arrays that are used to plot the data.

Code:
    Sub refreshChart()
        If ControlCharts.Created = True Then
            ControlCharts.RChart.DataBindings.Clear()

            ControlCharts.RChart.Series("Range").Points.DataBindXY(totalSamples, pRanges)
        End If

I still get the same error "Enumeration already finished." The arrays definitely changes, they are set in the main form. They will contrain one new number each time the sub is called.. Any Ideas ?