I have tried searching for an answer to this, so far I have had no luck.
The solution I am looking for is regarding two workbooks and being able to copy one row from the source workbook (it has 1000 rows) to another book (to only contain one row at any one time, not including column headers).
The other issue is that the next time the macro is run I need to look at the next row down in the source workbook e.g.
First run copies row 2 (as column headers are in row 1) into row 2 of the other book
Second run copies row 3 into row 2 of the other book (as the program reading this book only looks in row 2).
So I assume a counter is needed in the code?
If there are any suggestions it would be very much appreciated.
You will need a macro to copy the data over and since you are going across macro runs (one row each time the macro is run), you will need to store the value of the row you last copied somewhere outside the macro. Let’s call this LastRowCopiedOver
You can store this in one of a few places:
Every time the macro is run successfully, you will update the value for LastRowCopiedOver so that you know what row to pick the next time around.
When you reach the end of the book, you can display a messagebox with a Yes/No question to reset back to row 2.