Ok here is the modified code, have tested a bit and as far as I can see it works the way you wanted but you better do some testing yourself as well.
The macro after clearing old data finds the range of data from FK3 to FK??.
It then compaires value in FK3 with value in FL3. If FK3 greater than FL3 it assumes that cell value should start at 1 and increase it until it reaches the FL3 value.
Then it takes the FK3 value and put in in the appropriate cell and increases this value untill it reaches 52.
If FK3 value is less than FL3 it works the way it did before.
In the uploaded file you had pasted the macro in sheet1 but you can also go to the "Developer" tab, click the "Visual Basic" and in the new window click "Insert" and then "Module". Then paste the code in this window.
Alf
Bookmarks