This code seems to work but it seems to put in the data incorrectly when the number of worksheets differs.
It retrieves data from a database and runs the pivottable wizard, which puts all data for the codes ZCCA etc. into a different worksheet.
Problem is that when it's now run, there are some...