Try this...
Code:Sub FillEmptyRanges() Dim rng As Range Set rng = Range("A1").CurrentRegion.SpecialCells(xlCellTypeBlanks) With rng .UnMerge .FormulaR1C1 = "=R[-1]C" For Each rng In rng With rng .Value = .Value End With Next rng End With End Sub
Try this...
Code:Sub FillEmptyRanges() Dim rng As Range Set rng = Range("A1").CurrentRegion.SpecialCells(xlCellTypeBlanks) With rng .UnMerge .FormulaR1C1 = "=R[-1]C" For Each rng In rng With rng .Value = .Value End With Next rng End With End Sub
A dream is not something you see when you are asleep, but something you strive for when you are awake.
It's usually a bad idea to say that something can't be done.
The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve
Join us at Facebook
Bookmarks