Hi
I am trying to write a macro that will search for the blank cells in the workbook and replace the blank cell with the value from the cell directly above it.
I have written the below code but it returns the word false. Any help would be appreciated
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Set Rng = ActiveSheet.UsedRange
Cells.Replace What:="", Replacement:=ActiveCell.Value = ActiveCell.Offset(-1, 0).Value
End Sub
Thanks
I am trying to write a macro that will search for the blank cells in the workbook and replace the blank cell with the value from the cell directly above it.
I have written the below code but it returns the word false. Any help would be appreciated
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Set Rng = ActiveSheet.UsedRange
Cells.Replace What:="", Replacement:=ActiveCell.Value = ActiveCell.Offset(-1, 0).Value
End Sub
Thanks