Macro that can merge cells

BPTeam

New Member
Joined
May 14, 2013
Messages
4
Hi All,

So I have a data set similar to this:
ColA ColB ColC ColD
AAA
QQT64
AAAQQT91
AAAQQY55
AAAWWT8
AAAWWT89
AAAWWT80
AAAWWT92
AAAEEY39
AAAEEY11
BBBQQY58
BBBQQY6
BBBQQT44
BBBWWY71
BBBWWY
75
BBBWWT61
BBBWWT31
BBBWWY61
BBBWWY36
BBBEET89
BBBEET72

<colgroup><col style="width:48pt" span="4" width="64"> </colgroup><tbody>
</tbody>


and i want to make it more visual and easier to read, i want it to look like this:

AAA
QQT64
91
Y55
WWT8
89
80
92
EEY39
11
BBB
QQ58
6
T44
WW
Y71
75
T61
31
Y61
36
EET89
72

<colgroup><col style="width:48pt" span="4" width="64"> </colgroup><tbody>
</tbody>


Does anyone have a macro that can do this type of merging??
It would save me potentially hours of merging cells line by line.


Thanks in advance!!!
 

BPTeam

New Member
Joined
May 14, 2013
Messages
4

<tbody>
AAAQQT64
91
Y55
WWT8
89
80
92
EEY39
11
BBBQQ58
6
T44
WWY71
75
T61
31
Y61
36
EET
89
72

<colgroup><col style="width:48pt" span="6" width="64"> </colgroup><tbody>
</tbody>
</tbody>
 
Last edited:

Forum statistics

Threads
1,081,695
Messages
5,360,679
Members
400,592
Latest member
katekoz

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top