It is not working because you have:
But you have not given x a value. So you are saying
I cleaned up your code below and removed the For I = 1 to x, because I don't see the need for it. You are already looping through each file with "For Each myFile in MyFolder"
Also, I would change the task you perform with each sheet. The way it is now, you copy the entire Summary sheet and paste it into the Paste sheet... But then this gets repeated for each workbook. This means that, in effect, only the last workbook Summary sheet values will remain in the Paste sheet. Everything else gets overwritten with each loop.
Bookmarks