starheartbeam
New Member
- Joined
- Aug 8, 2018
- Messages
- 18
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Id
[/TD]
[TD]location
[/TD]
[TD]start
[/TD]
[TD]%
[/TD]
[TD][/TD]
[TD]Id
[/TD]
[TD]location
[/TD]
[TD]start
[/TD]
[TD]%
[/TD]
[/TR]
[TR]
[TD]1234
[/TD]
[TD]US
[/TD]
[TD]Jan 1
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD]1234
[/TD]
[TD]US
[/TD]
[TD]Jan 1
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]1234
[/TD]
[TD]US
[/TD]
[TD]Feb 1
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD]1234
[/TD]
[TD]CA
[/TD]
[TD]Feb 1
[/TD]
[TD]90
[/TD]
[/TR]
[TR]
[TD]9876
[/TD]
[TD]CA
[/TD]
[TD]Jan 1
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD]9876
[/TD]
[TD]US
[/TD]
[TD]Jan 1
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]9876
[/TD]
[TD]FR
[/TD]
[TD]Feb 1
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD]9876
[/TD]
[TD]FR
[/TD]
[TD]Feb 1
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]7532
[/TD]
[TD]US
[/TD]
[TD]Jan 1
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD]7532
[/TD]
[TD]FR
[/TD]
[TD]Jan 1
[/TD]
[TD]100
[/TD]
[/TR]
</tbody>[/TABLE]
I have 2 tables each on different tabs. I am trying to write a macro that will lookat the Id and start of each tab and if those both match but the location doesnot match in the second tab to the first tab then it would copy that row and paste itonto a 3rd table. So in the exampleabove the 3rd tab would have.
Id location start %
1234 CA Feb 1 90
9876 US Jan 1 100
7532 FR Jan 1 100
<tbody>[TR]
[TD]Id
[/TD]
[TD]location
[/TD]
[TD]start
[/TD]
[TD]%
[/TD]
[TD][/TD]
[TD]Id
[/TD]
[TD]location
[/TD]
[TD]start
[/TD]
[TD]%
[/TD]
[/TR]
[TR]
[TD]1234
[/TD]
[TD]US
[/TD]
[TD]Jan 1
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD]1234
[/TD]
[TD]US
[/TD]
[TD]Jan 1
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]1234
[/TD]
[TD]US
[/TD]
[TD]Feb 1
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD]1234
[/TD]
[TD]CA
[/TD]
[TD]Feb 1
[/TD]
[TD]90
[/TD]
[/TR]
[TR]
[TD]9876
[/TD]
[TD]CA
[/TD]
[TD]Jan 1
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD]9876
[/TD]
[TD]US
[/TD]
[TD]Jan 1
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]9876
[/TD]
[TD]FR
[/TD]
[TD]Feb 1
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD]9876
[/TD]
[TD]FR
[/TD]
[TD]Feb 1
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]7532
[/TD]
[TD]US
[/TD]
[TD]Jan 1
[/TD]
[TD]100
[/TD]
[TD][/TD]
[TD]7532
[/TD]
[TD]FR
[/TD]
[TD]Jan 1
[/TD]
[TD]100
[/TD]
[/TR]
</tbody>[/TABLE]
I have 2 tables each on different tabs. I am trying to write a macro that will lookat the Id and start of each tab and if those both match but the location doesnot match in the second tab to the first tab then it would copy that row and paste itonto a 3rd table. So in the exampleabove the 3rd tab would have.
Id location start %
1234 CA Feb 1 90
9876 US Jan 1 100
7532 FR Jan 1 100