Rolly_Sefu
Board Regular
- Joined
- Oct 25, 2013
- Messages
- 149
Hello.
I have the following table:
Column B is a merged cell, ( 4 rows merged into once cell)
I am trying to get the value 2 from column A by and value 4 from column A by offsetting the merged cell of column B
x = Range("M8").MergeArea.Offset(1, -1)
M8 = my merged cell
so I would need to get the values for L9 and L11
But this does not give me a good result, always returns the value as a merged cell.
Any ideas ?
Thanks.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]x[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have the following table:
Column B is a merged cell, ( 4 rows merged into once cell)
I am trying to get the value 2 from column A by and value 4 from column A by offsetting the merged cell of column B
x = Range("M8").MergeArea.Offset(1, -1)
M8 = my merged cell
so I would need to get the values for L9 and L11
But this does not give me a good result, always returns the value as a merged cell.
Any ideas ?
Thanks.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]x[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]