Hi, I need help in using vba to copy the last cell which contains only a number and then pasting it to the row beside. Assuming the value below the last cell in column one gets updated with a value
For example,
Initial
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]Column 1[/TD]
[TD="align: center"]Column 2[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]NA (this value would get updated) [/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]NA[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]NA[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]NA[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
After 1 iteration
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]Column 1[/TD]
[TD="align: center"]Column 2[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]32[/TD]
[TD="align: center"]*32*
[/TD]
[/TR]
[TR]
[TD="align: center"]NA (Next cell to get updated)[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]NA[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]NA[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would like vba to search for the last cell in column 1 which has a number(not "NA") and then copy and pasting it in column 2.
Much appreciated!
For example,
Initial
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]Column 1[/TD]
[TD="align: center"]Column 2[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]NA (this value would get updated) [/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]NA[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]NA[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]NA[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
After 1 iteration
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]Column 1[/TD]
[TD="align: center"]Column 2[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]32[/TD]
[TD="align: center"]*32*
[/TD]
[/TR]
[TR]
[TD="align: center"]NA (Next cell to get updated)[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]NA[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]NA[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would like vba to search for the last cell in column 1 which has a number(not "NA") and then copy and pasting it in column 2.
Much appreciated!