I seem to have found the solution to this, but I don't know why it's a problem.
I have a text file of my daily progress as an investor. It's just a date and a value going back to 1983. My Excel VBA reads the file, and creates a .csv file with a column for daily, 10 day, 30 day, 60 day and 90 day moving averages. To keep the chart readable, it only displays the last 200 or so days (I have the option of selecting any 200 day range).
After it builds the .csv file, it uses that file to make build and display the chart. It works fine on my I7 Notebook (which has the Home and Office version), but on my I5 Desktop (which has the 365 version) only a few days of the chart are displayed. I have VBA code on the display that resets everything and lets me start over. If I "reset" it, it works fine. Actually if I close the program, and run it again it runs fine.
It almost seems as if the Chart code is running before the .csv file is complete, but since instructions run in sequence, that doesn't seem possible.
My work around which seems to work so far is to put a 1 second delay before building the chart (a half second sometimes failed). So my question is, why is this necessary?
Bookmarks