If .Cells.Count <> Application.CountA(.Cells) Then
.SpecialCells(xlCellTypeBlanks) = "=r[-1]c"
End If
.Value = .Value
End With
End Sub
複製代碼
作者: ML089 時間: 2018-2-11 18:01
初級的寫法
Sub ex()
For i = 2 To Cells(4 ^ 8, "C").End(xlUp).Row
If Cells(i, "A") = "" Then Cells(i, "A") = Cells(i - 1, "A").Value
If Cells(i, "B") = "" Then Cells(i, "B") = Cells(i - 1, "B").Value
Next
End Sub作者: kasa 時間: 2018-2-17 21:15