Hi Andy,
Thanks for offering to look at this. The workbook was too big to post in its original state so I started trying to cut it down but also did some further testing and have found a solution.
I noticed that the positioning of the DataFTE sheet (from where tables and charts are exported for display in the form) had a bearing on which run-time error I got. This also explains why the isolated macro didn't crash in your testing.
If prior to running the sequence of macros the DataFTE sheet is left scrolled far enough to the right that column G is no longer visible (meaning there is enough space to the left of the visible screen for a chart to be placed) the process places a completely blank chart (a white box with no axes, legends etc. but of 'Chart' type) in cell A1 in the DataFTE sheet at the start of the With statement within the TableShow module and crashes with error 1004 at the .Chart.Paste line.
If I leave the DataFTE sheet scrolled far enough to the left that column G is wholly or partly visible the process gets past that module but instead crashes on the last line of a later ChartShow module with error 481 'invalid picture'.
Selecting the desired chart manually first and ensuring the screen is scrolled to the left solves both of these run-time errors and allows the macros to run. I've added the following code in order to automate this regardless of what happens prior to running the sequence:
In practical terms this one is 'Solved', though it's strange that this additional code is needed in 2010 but not in 2007 or 2003.
Cheers,
John
Bookmarks