How to keep value of merged cells in each cell?
问题 I created a sheet with merged cells, but the value of the merged cells is only stored in the first cell. Is there anyway, to keep the same value in each of the cells, I need that for a formula I use. Thanks! 回答1: In Excel 2003 this macro does the job: Public Sub UnmergeAndFill() With Selection If .MergeCells Then .MergeCells = False Selection.Cells(1, 1).Copy ActiveSheet.Paste 'Or PasteSpecial xlPasteFormulasAndNumberFormats End If End With End Sub Create the macro by pressing Alt-F11 , Ctrl