cssfonseca
New Member
- Joined
- Aug 14, 2018
- Messages
- 19
Hello.
I have a Table where i have values in Column A. And i want to lookup dat value in sheet2, and replace it and the same column. All of this with the trigger of a button.
I have stumbled around many codes, but none of them seems to fit my purpose.
Explained
[TABLE="width: 500"]
<tbody>[TR]
[TD]Button Trigger[/TD]
[/TR]
</tbody>[/TABLE]
Sheet1
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]name_category[/TD]
[TD]product_id[/TD]
[/TR]
[TR]
[TD]Television[/TD]
[TD]233431[/TD]
[/TR]
[TR]
[TD]Computer[/TD]
[TD]2334[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]code[/TD]
[TD]name of category[/TD]
[/TR]
[TR]
[TD]TEL01[/TD]
[TD]Television[/TD]
[/TR]
[TR]
[TD]COM01[/TD]
[TD]Computer[/TD]
[/TR]
</tbody>[/TABLE]
So I want the value of the name of category to be replaced for the code, in sheet1, on the click of the button. My main problem is how to define the range, since i dont have a fixed size to the columnA.
Can somebody help me with this code?
I have a Table where i have values in Column A. And i want to lookup dat value in sheet2, and replace it and the same column. All of this with the trigger of a button.
I have stumbled around many codes, but none of them seems to fit my purpose.
Explained
[TABLE="width: 500"]
<tbody>[TR]
[TD]Button Trigger[/TD]
[/TR]
</tbody>[/TABLE]
Sheet1
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]name_category[/TD]
[TD]product_id[/TD]
[/TR]
[TR]
[TD]Television[/TD]
[TD]233431[/TD]
[/TR]
[TR]
[TD]Computer[/TD]
[TD]2334[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]code[/TD]
[TD]name of category[/TD]
[/TR]
[TR]
[TD]TEL01[/TD]
[TD]Television[/TD]
[/TR]
[TR]
[TD]COM01[/TD]
[TD]Computer[/TD]
[/TR]
</tbody>[/TABLE]
So I want the value of the name of category to be replaced for the code, in sheet1, on the click of the button. My main problem is how to define the range, since i dont have a fixed size to the columnA.
Can somebody help me with this code?