Akash030193
New Member
- Joined
- Apr 28, 2019
- Messages
- 22
I want to Merge and centre current row (row 2) with next blank row (row 3) if value is "Open". Similarly for other rows (6-7, 8-9, 10-11 etc.)
Can you please provide any suitable VBA Program?
[TABLE="class: grid, width: 0, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Status[/TD]
[TD]remark[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Open[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Close[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Close[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Open[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Open[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Open[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Close[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Can you please provide any suitable VBA Program?
[TABLE="class: grid, width: 0, align: center"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Status[/TD]
[TD]remark[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Open[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Close[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Close[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Open[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Open[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Open[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Close[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]