I have created a spreadsheet in excel 2007 for teachers to monitor progress and attainment based upon various parameters.
To create the rules for the parameters I have used a set of macros which are working brilliantly and the cells containing the student scores change colour depending upon whether they are progressing at, below or above the expected level (yellow, red and green- original I know!!).
I am now trying to create a 'drop-in' spreadsheet that will allow staff to copy and paste from the master sheet (which contains all of the students in the Year group) and get feedback on their own class specifically. Everything has worked well until I came to what I thought would be the easiest part- getting excel to count the number of different coloured cells in each column. I know this cannot be done through formula unless you have the xCELLcolor add-in (which we don't) so I wrote a very simple CountColor script using VBA.
I can now apply a formula to count any coloured cell based upon an existing cell colour but I cannot get it to count the coloured cells copied over from the master spreadsheet. I keep getting the answer '0' or '29' which is the total number of cells in the column!
Is this something to do with the way in which the master spreadsheet allocates the cell colour through the macro, does excel not recognise the cell as having a colour when it is copied and pasted in to the 'drop-in' spreadsheet?
I am completely stumped because it works for columns that I format with colour manually! Any suggestions?