Hello guys,
So I made this macro which automatically formats data output from our instrument to a form that can be listed. Copies the data and pastes it automatically along with the filename right next to it. It goes through the entire folder and opens up each file and repeats the process.
The problem is that after the first few files I get the "Run-Time error '1004': Paste method of Worksheet class failed" error. The line of code that is in question after debugging is highlighted below.
This is not the case of me copying entire rows nor is it the case of me copying 2,516 or more rows, so I do not see why this is occurring.
Any help that you can provide would be most appreciated.
Bookmarks