上のセルと同じ値で空白セルを埋めるExcelマクロ
手動でやる場合
範囲を選択
ctrl + g
alt + s(セルを選択)
alt + k(空白セル)
enter
「=」と入力して、↑を押す
ctrl + enter (複数セルに一括入力)
https://i.gyazo.com/c375333cc8824a75597c630bc10f424b.gif
code:vb
Sub FillEmptyCell()
'
' FillEmptyCell Macro
'
Selection.SpecialCells(xlCellTypeBlanks).Select
Application.CutCopyMode = False
Selection.FormulaR1C1 = "=R-1C" End Sub