マクロ 24回
見やすさを考慮してセル結合された表は、いざその表を使う段階で普通の表にしたいと思うことがあります。
(サンプルファイルは、こちらから
3行マクロ24回サンプルデータ)
Excelバージョン:



Sub Macro1()
Selection.UnMerge
Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.Delete Shift:=xlUp
End Sub

Sub kaijyo() Selection.CurrentRegion.Select Selection.UnMerge Selection.SpecialCells(xlCellTypeBlanks).Select Selection.Delete Shift:=xlUp End Sub
Sub kaijyo2() Selection.CurrentRegion.UnMerge Selection.SpecialCells(xlCellTypeBlanks).Delete Shift:=xlUp End Sub