I run this code to force a few charts to update:
'Force update charts For Each cht In Sheets("Charts").ChartObjects cht.Chart.SeriesCollection.Add Source:=Worksheets("Builder").Range("AI2:AI7") cht.Chart.SeriesCollection(cht.Chart.SeriesCollection.Count).Delete Next cht
I never want to cancel or repeat the lines below from the Excel Quick Access Toolbar. Unfortunately, the lines above are clear Excels undo / redo list, and I can no longer undo / undo changes.
Is it possible to force Excels undo / redo to ignore VBA code that is executed and not cleared?
source share