Determining the size of a merged area

Oxymoron picture Oxymoron · Nov 4, 2009 · Viewed 14.7k times · Source

Right, before we get off about merged cells, I hate them too, but I've to deal with them anyway. I cannot change anything about that now or in the future. As much as I would like to ;)

Say I have some merged cells, I need to determine the amount of cells it spans. Say A1:A4 are merged, then I need to have the number of merged cells, 4, returned. Is there any way to accomplish this?

Answer

Dick Kusleika picture Dick Kusleika · Nov 4, 2009
ActiveCell.MergeArea.Count