OK James,
Here is the code and an example file. Give it a try.
Sub FillBlanks()
Dim Col As Double
Dim StartRow As Double
Dim EndRow As Double
Dim SpanRows As Double
Dim StartVal As Double
Dim EndVal As Double
Dim StepVal As Double
Col = ActiveCell.Column
Do Until ActiveCell.Row = Rows.Count
Cells(1, Col).Select
Cells(ActiveCell.Row, Col).End(xlDown).Select
StartRow = ActiveCell.Row
StartVal = ActiveCell.Value
Cells(ActiveCell.Row, Col).End(xlDown).Select
EndRow = ActiveCell.Row
If EndRow = Rows.Count Then GoTo Done
EndVal = ActiveCell.Value
SpanRows = EndRow = StartRow
StepVal = (EndVal - StartVal) / (EndRow - StartRow)
If EndRow - StartRow > 1 Then
Cells(StartRow + 1, Col).Select
Do Until ActiveCell <> ""
ActiveCell.Value = Cells(ActiveCell.Row - 1, Col) + StepVal
Cells(ActiveCell.Row + 1, Col).Select
Loop
End If
Loop
Done:
Cells(1, Col).Select
End Sub
Bookmarks