85characters
New Member
- Joined
- Jul 31, 2014
- Messages
- 5
Hi,
I’m new here and I’ve been working on a macro that’s driving me crazy. So I have three worksheets in one workbook (A,B and C). I want to merge data from four columns across worksheets A and B onto worksheet C. However, worksheets A and B do not have my four columns listed in the same order. Moreover, I want to add an additional column from only worksheet A.
So, in one workbook, it should essentially it should look like:
[TABLE="width: 855"]
<tbody>[TR]
[TD]WORKSHEET A
Column Headers -
[TABLE="width: 178"]
<tbody>[TR]
[TD]Customer Name
[/TD]
[/TR]
[TR]
[TD]Store
[/TD]
[/TR]
[TR]
[TD]Dept
[/TD]
[/TR]
[TR]
[TD]Cashier
[/TD]
[/TR]
[TR]
[TD]Manager
[/TD]
[/TR]
[TR]
[TD]State
[/TD]
[/TR]
[TR]
[TD]Amt
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]+
[/TD]
[TD]WORKSHEET B
Column Headers -
[TABLE="width: 128"]
<tbody>[TR]
[TD][TABLE="width: 210"]
<tbody>[TR]
[TD]Cashier
[/TD]
[/TR]
[TR]
[TD]Item
[/TD]
[/TR]
[TR]
[TD]Customer Name
[/TD]
[/TR]
[TR]
[TD]Item Display Type
[/TD]
[/TR]
[TR]
[TD]Vendor
[/TD]
[/TR]
[TR]
[TD]Dept
[/TD]
[/TR]
[TR]
[TD]Store
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]=
[/TD]
[TD]WORKSHEET C
Column Headers -
[TABLE="width: 219"]
<tbody>[TR]
[TD]Customer Name
[/TD]
[/TR]
[TR]
[TD]Store
[/TD]
[/TR]
[TR]
[TD]Dept
Cashier
[/TD]
[/TR]
[TR]
[TD]Amt
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
But I can’t figure out how to write this macro in VBA and I cannot get it. Can anyone help?
Thank you,
85characters
I’m new here and I’ve been working on a macro that’s driving me crazy. So I have three worksheets in one workbook (A,B and C). I want to merge data from four columns across worksheets A and B onto worksheet C. However, worksheets A and B do not have my four columns listed in the same order. Moreover, I want to add an additional column from only worksheet A.
So, in one workbook, it should essentially it should look like:
[TABLE="width: 855"]
<tbody>[TR]
[TD]WORKSHEET A
Column Headers -
[TABLE="width: 178"]
<tbody>[TR]
[TD]Customer Name
[/TD]
[/TR]
[TR]
[TD]Store
[/TD]
[/TR]
[TR]
[TD]Dept
[/TD]
[/TR]
[TR]
[TD]Cashier
[/TD]
[/TR]
[TR]
[TD]Manager
[/TD]
[/TR]
[TR]
[TD]State
[/TD]
[/TR]
[TR]
[TD]Amt
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]+
[/TD]
[TD]WORKSHEET B
Column Headers -
[TABLE="width: 128"]
<tbody>[TR]
[TD][TABLE="width: 210"]
<tbody>[TR]
[TD]Cashier
[/TD]
[/TR]
[TR]
[TD]Item
[/TD]
[/TR]
[TR]
[TD]Customer Name
[/TD]
[/TR]
[TR]
[TD]Item Display Type
[/TD]
[/TR]
[TR]
[TD]Vendor
[/TD]
[/TR]
[TR]
[TD]Dept
[/TD]
[/TR]
[TR]
[TD]Store
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]=
[/TD]
[TD]WORKSHEET C
Column Headers -
[TABLE="width: 219"]
<tbody>[TR]
[TD]Customer Name
[/TD]
[/TR]
[TR]
[TD]Store
[/TD]
[/TR]
[TR]
[TD]Dept
Cashier
[/TD]
[/TR]
[TR]
[TD]Amt
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
But I can’t figure out how to write this macro in VBA and I cannot get it. Can anyone help?
Thank you,
85characters