Merge cells based on Month Number within Date value in cells

jsavoor

New Member
Joined
Dec 14, 2008
Messages
23
Hi

I need to do a roadmap and want to automate the Month cells but also make them look presentable. I have a range of cells with dates based on weekly periods (date(now), date(now)+7, etc) These are in ROW 2 and begin in COL B.
I want to show the month in ROW 3 but I would like to have a VB script that will first UNMERGE the entire row, and then merge the cells corresponding to the month in ROW 2. The VB Script should also enter the MONTH name centered within the merged cell.

So...

1bcdef
220/07/201227/07/201203/08/201210/08/201217/08/2012
3JULYAUGUST

<tbody>
</tbody>

Result shows that B3 and C3 are merged and say JULY centred, and cells D3, E3 and F3 are merged with AUGUST centered in.

I would be most grateful if someone could please help me.

Thanks and warm regards

Jay
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,214,618
Messages
6,120,544
Members
448,970
Latest member
kennimack

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top