I have been trying the following and I can not do it
In sheet “OP” you must go through the codes reported in the field "Work Code", checking that the same code has been incorporated in the field "Work Code" of sheet “AP”. In case any code is not found in the sheet “AP”, the macro should check if it is in the "Related Work Code" field on sheet “AS”. If it is not found on this sheet either, it should show the code in page “Result”
Sheet “OP”
[TABLE="width: 240"]
<tbody>[TR]
[TD]System
[/TD]
[TD]System2
[/TD]
[TD]Work Code
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]15-8
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]1213
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]
Sheet “AP”
[TABLE="width: 341"]
<tbody>[TR]
[TD]Recent
[/TD]
[TD]Work type
[/TD]
[TD]Type code
[/TD]
[TD]Work Code
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]1213
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sheet “AS”
[TABLE="width: 646"]
<tbody>[TR]
[TD]System
[/TD]
[TD]local
[/TD]
[TD]x
[/TD]
[TD]City
[/TD]
[TD]Code ccity
[/TD]
[TD]Tyoer Related code
[/TD]
[TD]Tyoer Related code
[/TD]
[TD]Related Work Code
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]15
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Expect result codes : 15-8 , 1
My code don’t work ;/
Regards
In sheet “OP” you must go through the codes reported in the field "Work Code", checking that the same code has been incorporated in the field "Work Code" of sheet “AP”. In case any code is not found in the sheet “AP”, the macro should check if it is in the "Related Work Code" field on sheet “AS”. If it is not found on this sheet either, it should show the code in page “Result”
Sheet “OP”
[TABLE="width: 240"]
<tbody>[TR]
[TD]System
[/TD]
[TD]System2
[/TD]
[TD]Work Code
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]15-8
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]1213
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]
Sheet “AP”
[TABLE="width: 341"]
<tbody>[TR]
[TD]Recent
[/TD]
[TD]Work type
[/TD]
[TD]Type code
[/TD]
[TD]Work Code
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]1213
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sheet “AS”
[TABLE="width: 646"]
<tbody>[TR]
[TD]System
[/TD]
[TD]local
[/TD]
[TD]x
[/TD]
[TD]City
[/TD]
[TD]Code ccity
[/TD]
[TD]Tyoer Related code
[/TD]
[TD]Tyoer Related code
[/TD]
[TD]Related Work Code
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]15
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Expect result codes : 15-8 , 1
My code don’t work ;/
Regards