Hi all
Hi have sheet(data) and sheet(source) like belove
Sheet(data):
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]A123[/TD]
[TD]999[/TD]
[TD]888[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]A124[/TD]
[TD]456[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]A125[/TD]
[TD]123[/TD]
[TD]456[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]A126[/TD]
[TD]741[/TD]
[TD]852[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]A127[/TD]
[TD]987[/TD]
[TD]987[/TD]
[/TR]
</tbody>[/TABLE]
And Sheet(source):
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]A121[/TD]
[TD]123[/TD]
[TD]456[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]A122[/TD]
[TD]456[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]A123[/TD]
[TD]789[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]A124[/TD]
[TD]147[/TD]
[TD]258[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]A129[/TD]
[TD]456[/TD]
[TD]987[/TD]
[/TR]
</tbody>[/TABLE]
Now I want macro to combine from sheet(source) to sheet(data):
if match value sheet(source).column(C) with sheet(data).column(A) => data will sort in by sheet(data).Column(A) and combine like belove
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]A121[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]123[/TD]
[TD]456[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]A122[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]456[/TD]
[TD]789[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]A123[/TD]
[TD]999[/TD]
[TD]888[/TD]
[TD]789[/TD]
[TD]789[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]A124[/TD]
[TD]456[/TD]
[TD]789[/TD]
[TD]147[/TD]
[TD]258[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]A125[/TD]
[TD]123[/TD]
[TD]456[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]A126[/TD]
[TD]741[/TD]
[TD]852[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]A127[/TD]
[TD]987[/TD]
[TD]987[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]A129[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]456[/TD]
[TD]789[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Please help me to do this by macro. I need row is dynamic, this mean use last row in sheet(data).columnA and sheet(source).column(C)
thanks./.
Hi have sheet(data) and sheet(source) like belove
Sheet(data):
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]A123[/TD]
[TD]999[/TD]
[TD]888[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]A124[/TD]
[TD]456[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]A125[/TD]
[TD]123[/TD]
[TD]456[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]A126[/TD]
[TD]741[/TD]
[TD]852[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]A127[/TD]
[TD]987[/TD]
[TD]987[/TD]
[/TR]
</tbody>[/TABLE]
And Sheet(source):
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]A121[/TD]
[TD]123[/TD]
[TD]456[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]A122[/TD]
[TD]456[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]A123[/TD]
[TD]789[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]A124[/TD]
[TD]147[/TD]
[TD]258[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]A129[/TD]
[TD]456[/TD]
[TD]987[/TD]
[/TR]
</tbody>[/TABLE]
Now I want macro to combine from sheet(source) to sheet(data):
if match value sheet(source).column(C) with sheet(data).column(A) => data will sort in by sheet(data).Column(A) and combine like belove
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]A121[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]123[/TD]
[TD]456[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]A122[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]456[/TD]
[TD]789[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]A123[/TD]
[TD]999[/TD]
[TD]888[/TD]
[TD]789[/TD]
[TD]789[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]A124[/TD]
[TD]456[/TD]
[TD]789[/TD]
[TD]147[/TD]
[TD]258[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]A125[/TD]
[TD]123[/TD]
[TD]456[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]A126[/TD]
[TD]741[/TD]
[TD]852[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]A127[/TD]
[TD]987[/TD]
[TD]987[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]A129[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]456[/TD]
[TD]789[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Please help me to do this by macro. I need row is dynamic, this mean use last row in sheet(data).columnA and sheet(source).column(C)
thanks./.