I have a somewhat complex VBA script that's working well but is annoying.
I'm building a chart with a messy computation involving accessing and changing the contents of several worksheets to compute each point. I want to watch the chart as it is being built, but not all the worksheet changes.
So, I'm calling a routine in a loop. It does the work of computing the next point and adding it to the source arrays of the chart. (There are actually multiple plots on the one chart, all being built with one more point on each call.) I use
Application.ScreenUpdating = False
before each call, then
Application.ScreenUpdating = True
to get the chart display updated, after each call.
The annoyance: When the latter is hit, it appears that Excel is visibly cycling through all the changed Worksheets and updating them as well!
Any ideas on preventing this? I'd like to see just the chart being updated without the flicker factor. Incidentally: I'd like the sheet in which the chart is located to be updated -- the computation shows its progress by maintaining certain values in its cells -- and that sheet, of course, is the selected one when I initiate the chart building.
None of the code uses any sheet selection, but rather references all the data it needs/updates through "With" or explicit sheet labels in the cell addresses/labels/ranges.
I'm building a chart with a messy computation involving accessing and changing the contents of several worksheets to compute each point. I want to watch the chart as it is being built, but not all the worksheet changes.
So, I'm calling a routine in a loop. It does the work of computing the next point and adding it to the source arrays of the chart. (There are actually multiple plots on the one chart, all being built with one more point on each call.) I use
Application.ScreenUpdating = False
before each call, then
Application.ScreenUpdating = True
to get the chart display updated, after each call.
The annoyance: When the latter is hit, it appears that Excel is visibly cycling through all the changed Worksheets and updating them as well!
Any ideas on preventing this? I'd like to see just the chart being updated without the flicker factor. Incidentally: I'd like the sheet in which the chart is located to be updated -- the computation shows its progress by maintaining certain values in its cells -- and that sheet, of course, is the selected one when I initiate the chart building.
None of the code uses any sheet selection, but rather references all the data it needs/updates through "With" or explicit sheet labels in the cell addresses/labels/ranges.