Substitute/Replace

V

Viktor Ygdorff

I have been having great trouble with replwcing the series of existing
charts. I have the new data series for the charts but for some reason it is
quite difficult to get the charts to understand that they are supposed to
display these new values. The code is:

Do While k < (UBound(rng))
If Not IsEmpty(rng(k)) Then
ActiveChart.SeriesCollection(varWorksheetInfoArray(k)).Values =
Sheets(varWorksheetInfoArray(0)).Range(rng(k).Offset(i, 0).Address & ":" &
rng(k).Offset(j, 0).Address)
Else: End If
k = k + 1
Loop

I have really spent I alot of time trying to solve thís . The code is
correct in the sense that it gives the right data series it is just the
charts that are not keen on updating. Is it perhaps better to use replace or
substitute?
Does anyone know how to aplly these methods to my code?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Replace/substitute 0
Chart SERIES OFFSET 5
Update charts 0
Chart series 0
Checking contents of arrays 1
Chart series 2
Code does not error but no copy either 4
Inaccurate count with code 6

Top