Hi all, i would like to write a vba so that to run through col. "B" and where find the text "Occupancy" should write down a formula in col. "C" as my below extract. Note that the row of text "Occupancy" change each time when i download the data through accounting system.
Thanking you in advance
<tbody>
[TD="class: xl63"]
<tbody>
[TD="class: xl65, align: center"][/TD]
[TD="class: xl65, width: 213, align: center"]B[/TD]
[TD="class: xl67, width: 592, align: center"]C[/TD]
[TD="class: xl65, align: center"]135[/TD]
[TD="class: xl65, align: center"]Occupancy[/TD]
[TD="class: xl67, align: center"]=VLOOKUP($D$1;[TABLE.xlsx]Sheet1!A3:M7;MATCH($D$6;[TABLE.xlsx]Sheet1!A1:M1;0);0)
[/TD]
[TD="class: xl65, align: center"]136[/TD]
[TD="class: xl65, align: center"][/TD]
[TD="class: xl67, align: center"][/TD]
</tbody>
[/TD]
[TD="class: xl65, width: 85"][/TD]
[TD="class: xl63, align: right"][/TD]
[TD="class: xl63"][/TD]
[TD="class: xl65, align: right"][/TD]
[TD="class: xl63, align: right"][/TD]
[TD="class: xl63"][/TD]
[TD="class: xl65"][/TD]
</tbody>
Thanking you in advance
<tbody>
[TD="class: xl63"]
<tbody>
[TD="class: xl65, align: center"][/TD]
[TD="class: xl65, width: 213, align: center"]B[/TD]
[TD="class: xl67, width: 592, align: center"]C[/TD]
[TD="class: xl65, align: center"]135[/TD]
[TD="class: xl65, align: center"]Occupancy[/TD]
[TD="class: xl67, align: center"]=VLOOKUP($D$1;[TABLE.xlsx]Sheet1!A3:M7;MATCH($D$6;[TABLE.xlsx]Sheet1!A1:M1;0);0)
[/TD]
[TD="class: xl65, align: center"]136[/TD]
[TD="class: xl65, align: center"][/TD]
[TD="class: xl67, align: center"][/TD]
</tbody>
[TD="class: xl65, width: 85"][/TD]
[TD="class: xl63, align: right"][/TD]
[TD="class: xl63"][/TD]
[TD="class: xl65, align: right"][/TD]
[TD="class: xl63, align: right"][/TD]
[TD="class: xl63"][/TD]
[TD="class: xl65"][/TD]
</tbody>