Hi all,
I'm looking to run a series of copy pasting and duplicate row macro.
I need to:
(1) Copy paste y2:z2 to ab2:ac2
(2) Autofill ab2:ac2 to last row (data in column to the right)
(3) Copy paste ac2:ae* (eg ae18) to another sheet (a2:c*)
Then:
(4) Copy paste y3:z3 (until last row of data) to ab2:ac2
(5) Autofill ab2:ac2 to last row (data in column to the right)
(6) Copy paste ac2:ae* (eg ae18*) to the row after the last row used in step (3).
Then:
(7) In the other sheet, i'd have a2:c*. I need to duplicate cell a & b X times according to the number that's found in c
E.g.
A B C
alan dennis 3
alan ben 1
alan alice 2
would be
A B C
alan dennis 3
alan dennis 3
alan dennis 3
alan ben 1
alan alice 2
alan alice 2
I've been at this for quite some time and have a basic understanding of the techniques that should be used (such as for each loop (with a nested loop), find last row of columns) etc but I can't find anything suitable and I can't code from scratch (not to mention I get very confused by some of the codes). For the codes that are posted, can you also explain the solution line by line so I have a good understanding of the concept for future reference?
TIA!
I'm looking to run a series of copy pasting and duplicate row macro.
I need to:
(1) Copy paste y2:z2 to ab2:ac2
(2) Autofill ab2:ac2 to last row (data in column to the right)
(3) Copy paste ac2:ae* (eg ae18) to another sheet (a2:c*)
Then:
(4) Copy paste y3:z3 (until last row of data) to ab2:ac2
(5) Autofill ab2:ac2 to last row (data in column to the right)
(6) Copy paste ac2:ae* (eg ae18*) to the row after the last row used in step (3).
Then:
(7) In the other sheet, i'd have a2:c*. I need to duplicate cell a & b X times according to the number that's found in c
E.g.
A B C
alan dennis 3
alan ben 1
alan alice 2
would be
A B C
alan dennis 3
alan dennis 3
alan dennis 3
alan ben 1
alan alice 2
alan alice 2
I've been at this for quite some time and have a basic understanding of the techniques that should be used (such as for each loop (with a nested loop), find last row of columns) etc but I can't find anything suitable and I can't code from scratch (not to mention I get very confused by some of the codes). For the codes that are posted, can you also explain the solution line by line so I have a good understanding of the concept for future reference?
TIA!