I want to write a macro that will merge every three rows at a time and center the data in an Excel table. This should be done for three columns, but the macro can just be run separately for each column. The tables can vary in length but could consist of over 100 rows. They would typically look like this:
Row
3 RC628054E
4
5
6 RC628054F
7
8
9 RC628054G
10
11
12 RC628054I
13
14
15 RC628752G
16
17
18 RC628054M
19
20
21 RC628752H
...and so on.
So the code should merge rows 3-5, 6-8, 9-11, 12-14, 15-17, 18-20, etc, and center each merged cell (horizontal and vertical).
I've searched this site and others for code that I can adapt, but don't know Excel VBA well enough to pick out what will do the job. If someone can help out, that would be great.
Row
3 RC628054E
4
5
6 RC628054F
7
8
9 RC628054G
10
11
12 RC628054I
13
14
15 RC628752G
16
17
18 RC628054M
19
20
21 RC628752H
...and so on.
So the code should merge rows 3-5, 6-8, 9-11, 12-14, 15-17, 18-20, etc, and center each merged cell (horizontal and vertical).
I've searched this site and others for code that I can adapt, but don't know Excel VBA well enough to pick out what will do the job. If someone can help out, that would be great.