Why does this copy data down to the next blank cell till the next full cell, then take that cell’s data and start over again?
Option Explicit
Sub CopyDown()
Dim wsPOD As Worksheet
Dim lastrow
Set wsPOD = Sheets("PO Data")
With wsPOD
lastrow = wsPOD.Range("F" & Rows.Count).End(xlUp).Row
wsPOD.Range("A2:D" & lastrow).Select
Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.FormulaR1C1 = "=R[-1]C"
End With
End Sub
I understand the majority of the script, but I don’t understand this part:
Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.FormulaR1C1 = "=R[-1]C"
The last part especially means gibberish to me, can someone help me understand this please?
Based on my comment you can tidy up the code using
Option Explicit