@GenericPat,
The code is written with the intention of adding a new row of data versus copying over the current row of data; however, if we look back at the point Tejas brought up, he/she suggested to use column I to establish the last row versus column A. A great observation.
Reason:
It all lies in whether data is entered in column A:G of the source sheet or not.
Column I holds the trigger for transferring data. Select "Yes" and that row of data is copied to the sheet that matches the name in the code.
When the row is transferred, the code has to establish the last row to know where to copy too.
Let's say the first time you transfer a row you do not fill the data elements in columns A:G. The last row on the sheet being pasted too is row 2; however, if you past one more row to the same sheet, the last row will still be row 2 because column A does not contain any data.
Tejas suggested using column I as the last row indicator as to prevent a user from not filling out columns A:G. This column could be the best indicator for setting the last row, but cityinspector was not concerned because column A:G would never be void of any data prior to selecting "Yes" in column I.
Column A from post #2 equals column 1
Column I from post #12 equals column 9
All of this makes sense in my head and hopefully it translates to you also...
Bookmarks