Hey everyone! This is my first time posting here
I've been scrolling through the forum for a solution to my problem but none seems to work!
I've just recently started doing macros and
I have a macro that would compare two excel sheets Col A(Sheet 1 and Sheet 2) and output the new data found in sheet 2 to the bottom of sheet 1 data:
Sheet 1: [TABLE="width: 165"]
<tbody>[TR]
[TD]No.[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]A100[/TD]
[TD]Obj1[/TD]
[/TR]
[TR]
[TD]A300[/TD]
[TD]Obj3[/TD]
[/TR]
[TR]
[TD]A400[/TD]
[TD]Obj4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2:
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]No.[/TD]
[TD="class: xl66, width: 64"]Name[/TD]
[/TR]
[TR]
[TD="class: xl67"]A100[/TD]
[TD="class: xl67"]Obj1[/TD]
[/TR]
[TR]
[TD="class: xl67"]A200[/TD]
[TD="class: xl67"]Obj2[/TD]
[/TR]
[TR]
[TD="class: xl67"]A300[/TD]
[TD="class: xl67"]Obj3[/TD]
[/TR]
[TR]
[TD="class: xl67"]A400[/TD]
[TD="class: xl67"]Obj4[/TD]
[/TR]
[TR]
[TD="class: xl67"]A500[/TD]
[TD="class: xl67"]Obj5[/TD]
[/TR]
[TR]
[TD="class: xl67"]A600[/TD]
[TD="class: xl67"]Obj6[/TD]
[/TR]
</tbody>[/TABLE]
OUTPUT(Sheet 1):
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]No.[/TD]
[TD="class: xl66, width: 64"]Name[/TD]
[/TR]
[TR]
[TD="class: xl67"]A100[/TD]
[TD="class: xl67"]Obj1[/TD]
[/TR]
[TR]
[TD="class: xl67"]A300[/TD]
[TD="class: xl67"]Obj3[/TD]
[/TR]
[TR]
[TD="class: xl67"]A400[/TD]
[TD="class: xl67"]Obj4[/TD]
[/TR]
[TR]
[TD="class: xl68"]A200[/TD]
[TD="class: xl68"]Obj2[/TD]
[/TR]
[TR]
[TD="class: xl68"]A500 [/TD]
[TD="class: xl68"]Obj5[/TD]
[/TR]
[TR]
[TD="class: xl68"]A600[/TD]
[TD="class: xl68"]Obj6[/TD]
[/TR]
[TR]
[TD="class: xl67"][/TD]
[TD="class: xl67"][/TD]
[/TR]
</tbody>[/TABLE]
The problem is that now I wish to insert the new data to Sheet 1 by inserting new rows in between Sheet 1's data after comparison automatically so I get the overview of where the new data is:
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]No.[/TD]
[TD="class: xl66, width: 64"]Name[/TD]
[/TR]
[TR]
[TD="class: xl67"]A100[/TD]
[TD="class: xl67"]Obj1[/TD]
[/TR]
[TR]
[TD="class: xl68"]A200[/TD]
[TD="class: xl68"]Obj2[/TD]
[/TR]
[TR]
[TD="class: xl67"]A300[/TD]
[TD="class: xl67"]Obj3[/TD]
[/TR]
[TR]
[TD="class: xl67"]A400[/TD]
[TD="class: xl67"]Obj4[/TD]
[/TR]
[TR]
[TD="class: xl68"]A500 [/TD]
[TD="class: xl68"]Obj5[/TD]
[/TR]
[TR]
[TD="class: xl68"]A600[/TD]
[TD="class: xl68"]Obj6[/TD]
[/TR]
</tbody>[/TABLE]
Is there a macro that will be able to do this automatically?
Thank you so much for your help!
I've been really troubled over this.
I've been scrolling through the forum for a solution to my problem but none seems to work!
I've just recently started doing macros and
I have a macro that would compare two excel sheets Col A(Sheet 1 and Sheet 2) and output the new data found in sheet 2 to the bottom of sheet 1 data:
Sheet 1: [TABLE="width: 165"]
<tbody>[TR]
[TD]No.[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]A100[/TD]
[TD]Obj1[/TD]
[/TR]
[TR]
[TD]A300[/TD]
[TD]Obj3[/TD]
[/TR]
[TR]
[TD]A400[/TD]
[TD]Obj4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2:
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]No.[/TD]
[TD="class: xl66, width: 64"]Name[/TD]
[/TR]
[TR]
[TD="class: xl67"]A100[/TD]
[TD="class: xl67"]Obj1[/TD]
[/TR]
[TR]
[TD="class: xl67"]A200[/TD]
[TD="class: xl67"]Obj2[/TD]
[/TR]
[TR]
[TD="class: xl67"]A300[/TD]
[TD="class: xl67"]Obj3[/TD]
[/TR]
[TR]
[TD="class: xl67"]A400[/TD]
[TD="class: xl67"]Obj4[/TD]
[/TR]
[TR]
[TD="class: xl67"]A500[/TD]
[TD="class: xl67"]Obj5[/TD]
[/TR]
[TR]
[TD="class: xl67"]A600[/TD]
[TD="class: xl67"]Obj6[/TD]
[/TR]
</tbody>[/TABLE]
OUTPUT(Sheet 1):
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]No.[/TD]
[TD="class: xl66, width: 64"]Name[/TD]
[/TR]
[TR]
[TD="class: xl67"]A100[/TD]
[TD="class: xl67"]Obj1[/TD]
[/TR]
[TR]
[TD="class: xl67"]A300[/TD]
[TD="class: xl67"]Obj3[/TD]
[/TR]
[TR]
[TD="class: xl67"]A400[/TD]
[TD="class: xl67"]Obj4[/TD]
[/TR]
[TR]
[TD="class: xl68"]A200[/TD]
[TD="class: xl68"]Obj2[/TD]
[/TR]
[TR]
[TD="class: xl68"]A500 [/TD]
[TD="class: xl68"]Obj5[/TD]
[/TR]
[TR]
[TD="class: xl68"]A600[/TD]
[TD="class: xl68"]Obj6[/TD]
[/TR]
[TR]
[TD="class: xl67"][/TD]
[TD="class: xl67"][/TD]
[/TR]
</tbody>[/TABLE]
The problem is that now I wish to insert the new data to Sheet 1 by inserting new rows in between Sheet 1's data after comparison automatically so I get the overview of where the new data is:
[TABLE="width: 128"]
<tbody>[TR]
[TD="class: xl65, width: 64"]No.[/TD]
[TD="class: xl66, width: 64"]Name[/TD]
[/TR]
[TR]
[TD="class: xl67"]A100[/TD]
[TD="class: xl67"]Obj1[/TD]
[/TR]
[TR]
[TD="class: xl68"]A200[/TD]
[TD="class: xl68"]Obj2[/TD]
[/TR]
[TR]
[TD="class: xl67"]A300[/TD]
[TD="class: xl67"]Obj3[/TD]
[/TR]
[TR]
[TD="class: xl67"]A400[/TD]
[TD="class: xl67"]Obj4[/TD]
[/TR]
[TR]
[TD="class: xl68"]A500 [/TD]
[TD="class: xl68"]Obj5[/TD]
[/TR]
[TR]
[TD="class: xl68"]A600[/TD]
[TD="class: xl68"]Obj6[/TD]
[/TR]
</tbody>[/TABLE]
Is there a macro that will be able to do this automatically?
Thank you so much for your help!
I've been really troubled over this.