I am trying to have a code that copies and pastes data from the column prior if the cell is empty. I am targeting columns I, K, M, O, Q, and S.
This is what I am currently using:
Sub FillFutureRoles()
Dim iCell As Range
For Each iCell In Range("I:I,K:K,M:M,O:O,Q:Q,S:S")
If iCell.Value = "" Then
iCell.Value = iCell.Offset(0, -1).Value
End If
Next iCell
End Sub
I am working with a data set of 600+ rows and growing, and when I tried to run this code, it was still running 30 minutes in. I know the code works as I have tried it with fewer columns and a smaller sample set, but it is not efficient for larger datasets.