Hello,
I was hoping someone here can help me with the current issue I am running into.
I found some code online that will look through Columns A to F, and copy and paste any values in the empty cells above it.
However the code runs into an issue if the values are N/A. Is there anyway to modify this?
Code:
Dim columnValues As Range, i As Long, c As Integer
Dim cellend As Integer
cellend = ActiveSheet.Range("A" & ActiveSheet.Rows.Count).End(xlUp).Row
For c = 1 To 6 'column numbers
For i = 3 To cellend - 1
If Cells(i, c).Value <> "" And Cells(i + 1, c).Value = "" Then '<---- This is where the error is occurring!!!
Cells(i + 1, c).Value = Cells(i, c).Value
End If
Next i
Next c
Any help is appreciated!
Thanks guys!
Bookmarks