It would make more sense if the sheet1 columns were in exactly the same order as your sheet8 data.
This boils down to filtering the data to show all the 'Pass' records. Then assuming the columns are in the same order using code like. Unless there's a particular reason to use looping code then always use filtering for this sort of stuff. Looping code carroes a big time overhead. Particularly where many rows are involved.
However you have committed the cardinal sin and have used merged cells on row 13 for the column header labels.
Most of us avoid merged cells like the plague. They just cause too much trouble and will catch you out in all sorts of ways. This is one such example and means you can't use the extremely efficient and simple filtering technique to grab some data and put it somewhere else in just a few lines of code. There is absolutely no benefit in having merged cells here. You can always use cells format 'center across selection' to achieve the same look.
However the column labels immediately above your data should always be unmerged
If you adjust your form so that each field is in a single column then reupload it will then be a trivial task to add the code above. If you want the column labesls in a different position on sheet1 then an Advanced Data Filter would be required
Bookmarks