General Ledger
Active Member
- Joined
- Dec 31, 2007
- Messages
- 460
Dear All,
I have an Excel 2003 workbook that is much like a checkbook. One sheet is the Form, which is protected except for cells where the user enters data (Payee, Amount, Date, etc.). I am looking for a macro that will copy data from certain noncontiguous cells on the Form sheet to another sheet that will act like a check register (lists records horizontally).
For example, copy the value at Form B2 to Register A2, Form B6 to Register A3, Form B8 to Register A4, and so on. The source of the data will always be the same cells on the Form sheet. The destination of the values will be the first blank row on the Register sheet. As records are added to the Register, the next record will be on the next blank row.
I am guessing a solution might include:
1. Using a Named Range on the source cells (if you can do this for noncontiguous cells)
2. Writing the values of all the cells in the Named Range to an array (I never used arrays before)
3. Paste the values in the array to the destination row.
Thanks for your help,
GL
I have an Excel 2003 workbook that is much like a checkbook. One sheet is the Form, which is protected except for cells where the user enters data (Payee, Amount, Date, etc.). I am looking for a macro that will copy data from certain noncontiguous cells on the Form sheet to another sheet that will act like a check register (lists records horizontally).
For example, copy the value at Form B2 to Register A2, Form B6 to Register A3, Form B8 to Register A4, and so on. The source of the data will always be the same cells on the Form sheet. The destination of the values will be the first blank row on the Register sheet. As records are added to the Register, the next record will be on the next blank row.
I am guessing a solution might include:
1. Using a Named Range on the source cells (if you can do this for noncontiguous cells)
2. Writing the values of all the cells in the Named Range to an array (I never used arrays before)
3. Paste the values in the array to the destination row.
Thanks for your help,
GL