I have a report in Excel where I would like to Merge cells (that's what users want, so be it) So basically the outcome would be something like this (Merge 2 cells for 12 months in a Year)
[pre]
A B C D E F G H
1 | | | | | | | |
2 xxxxxxxx | yyyyyyy | zzzzzzz | |
3 | | | | | | | |
[/PRE]
I know I can do:[tt]
Range("A2:B2").Merge
Range("C22").Merge
Range("E2:F2").Merge
...
[/tt]
but that's very tedious. I would rather loop thru cells across and Merge them in the loop.
Any ideas of how to do it?
Have fun.
---- Andy
There is a great need for a sarcasm font.
[pre]
A B C D E F G H
1 | | | | | | | |
2 xxxxxxxx | yyyyyyy | zzzzzzz | |
3 | | | | | | | |
[/PRE]
I know I can do:[tt]
Range("A2:B2").Merge
Range("C22").Merge
Range("E2:F2").Merge
...
[/tt]
but that's very tedious. I would rather loop thru cells across and Merge them in the loop.
Any ideas of how to do it?
Have fun.
---- Andy
There is a great need for a sarcasm font.