For i = 1 To Sheets.Count - 52
I hope the -52 is a slip up. If you have 52 sheets + sheet "Total" then command
will give you 53 as the number but your last sheet is KW52
so the loop is
For i = 1 To Sheets.Count - 1
You should also check the line
Cells(4, 2 + i).PasteSpecial Paste:=xlPasteValues
as this pastes the copied value to row 4 and column 2 + i So for i = 1 result get pasted to C4, and next i = 2 get pasted to D4 and so forth.
As this seem to clear up your problem could you please mark your thread "Solved"
Alf
Ps Thanks for feed back and rep!
To mark your thread solved do the following:
- Go to the first post
- Click edit
- Click Advance
- Just below the word "Title:" you will see a dropdown with the word No prefix.
- Change to Solve
- Click Save
Bookmarks