Hi everyone, I am a student who's new to Excel VBA and need some help with my code
I have a column of values in range L4:L53:
4
2
2
2
2
3
5
.... and so on
What I wish to do is merge the cells starting from X4 according to the values in column L
E.g. The value in L4 is 4, cells X4:X7 should merge together
The value in L5 is 2, cells X8:X9 should merge together
The value in L6 is 2, cells X10:X11 should merge together and so on.
Is there a VBA code that can achieve this, or do I need to do this manually? I appreciate your help!!
I have a column of values in range L4:L53:
4
2
2
2
2
3
5
.... and so on
What I wish to do is merge the cells starting from X4 according to the values in column L
E.g. The value in L4 is 4, cells X4:X7 should merge together
The value in L5 is 2, cells X8:X9 should merge together
The value in L6 is 2, cells X10:X11 should merge together and so on.
Is there a VBA code that can achieve this, or do I need to do this manually? I appreciate your help!!