Friends...
I have a sheet which contains input cells, formulae and two charts. One section deals with the result of a physical test (ie plug in the results), with a second section taking an empirical approach. Which is used depends on a variable set in another sheet. I have a 'hidelines' routine which loops down the rows in the sheet and hide/shows each row based on a value in a specified column (23) which is itself set based one the variable in the other sheet. In each section the chart is after the rows containing the chart data.
When the sheet is activated a routine is run to hide the lines as explained above. The first 25 lines go fine but then just before it gets to the first chart it bombs with Error 1004. In fact it doesn't actually reach the row with the chart. It appears that it can't quite hide the data ranges referred to the chart and it's this that causes the error. These data ranges are approx 5 rows deep but after the error they are represented by a thin horizontal line at the level of the last hidden row.
I've tried hiding the chart first but this has no effect. It appears the process of hiding rows just can't cope if the rows contain data which is linked to a chart.
Does anyone have any words of wisdom?
On a slightly tangential subject I also appear to have issues hiding any ActiveX controls such as option buttons and control boxes which again, don't seem to appreciate being 'hidden' by the row they are on.
Thank you
Bookmarks