Hello
I understand that the manual method for filling in blank cells from below
would be to:
I was curious if there is a macro that will allow me to do this all in one shot? I tried recording it but, it doesn't seem to record the process.
Ive found a macro but it doesn't loop and requires me to run it over and over again until it debugs and say no cells found.
Sub Fill_Blanks_From_Below()
Dim rng As Range, ar As Range
Set rng = Columns(1).SpecialCells(xlBlanks)
For Each ar In rng.Areas
ar.Value = ar.Offset(1, 0).Value
Next ar
End Sub
Thanks in advance.
I understand that the manual method for filling in blank cells from below
would be to:
- Select the first blank cell
- type = and hit the down arrow to creates the reference.
- copy the cell, highlight the column
- Edit - Go to - Special - Blanks and paste
I was curious if there is a macro that will allow me to do this all in one shot? I tried recording it but, it doesn't seem to record the process.
Ive found a macro but it doesn't loop and requires me to run it over and over again until it debugs and say no cells found.
Sub Fill_Blanks_From_Below()
Dim rng As Range, ar As Range
Set rng = Columns(1).SpecialCells(xlBlanks)
For Each ar In rng.Areas
ar.Value = ar.Offset(1, 0).Value
Next ar
End Sub
Thanks in advance.