JustATheory
IS-IT--Management
I have this piece of code that fills in blanks within a range and I'd like it to be generic so that I can add it to a button. I'd like it to run for the current worksheet and the current range, I'm stuck on that part.
Thanks,
Andy
For Each c In Worksheets("Worksheet").Range("FillBlankTop", "FillBlankBottom")
If (c.Value) = "" Then
c.Offset(0, 0).Value = c.Offset(-1, 0).Value
End If
Next
Thanks,
Andy
For Each c In Worksheets("Worksheet").Range("FillBlankTop", "FillBlankBottom")
If (c.Value) = "" Then
c.Offset(0, 0).Value = c.Offset(-1, 0).Value
End If
Next