[マクロ]上のセルの値で空白セルを埋める
上のセルの値で空白セルを埋めるExcelVBAマクロです。
c.textには代入できないので、"c.Value="にする必要があります。
Sub FillInCells()
For Each c In Selection
If c.Text = "" Then
c.Value = c.Offset(-1, 0).Text
End If
End Sub
上のセルの値で空白セルを埋めるExcelVBAマクロです。
c.textには代入できないので、"c.Value="にする必要があります。
Sub FillInCells()
For Each c In Selection
If c.Text = "" Then
c.Value = c.Offset(-1, 0).Text
End If
End Sub
TrackBack URL for this entry:
http://app.cocolog-nifty.com/t/trackback/4666/41942521
Listed below are links to weblogs that reference [マクロ]上のセルの値で空白セルを埋める:
Comments