Hi Everyone,
I am new to the forum and I am great at Excel - whilst also being terrible at VBA! Which I guess in itself is an oxymoron.
I am really stuck.
I need to paste information from columns on one sheet to columns on another (not entire rows and in a different order). The source columns (to copy) for each row will depend on the value in column C, whilst the destination will be a fixed column on the new sheet.
Example of logic below:
For each row (of selection on Sheet1) IF column C reads "C" Then Copy Sheet1.D paste to Sheet2.D And Copy Sheet1.E paste to Sheet2.E and so on...
Then
For each row (of selection on Sheet1) IF column C reads "D" Then Copy Sheet1.F paste to Sheet2.D And Copy Sheet1.G paste to Sheet2.E and so on...
Repeat for entire selection on Sheet 1
Paste in destination starting from first blank row. I have left the row numbers out because these would change based on when the code encounters a specific value in column C on sheet 1 and where the first blank row is on sheet 2.
Thank-you and I hope that makes some sense!
I am new to the forum and I am great at Excel - whilst also being terrible at VBA! Which I guess in itself is an oxymoron.
I am really stuck.
I need to paste information from columns on one sheet to columns on another (not entire rows and in a different order). The source columns (to copy) for each row will depend on the value in column C, whilst the destination will be a fixed column on the new sheet.
Example of logic below:
For each row (of selection on Sheet1) IF column C reads "C" Then Copy Sheet1.D paste to Sheet2.D And Copy Sheet1.E paste to Sheet2.E and so on...
Then
For each row (of selection on Sheet1) IF column C reads "D" Then Copy Sheet1.F paste to Sheet2.D And Copy Sheet1.G paste to Sheet2.E and so on...
Repeat for entire selection on Sheet 1
Paste in destination starting from first blank row. I have left the row numbers out because these would change based on when the code encounters a specific value in column C on sheet 1 and where the first blank row is on sheet 2.
Thank-you and I hope that makes some sense!