I don't understand why this code has compile error Next without For Please help :(
Sub DefColorCodes()
For i = 2 To 5
Range("actReg").Value = Range("Sheet1!A" & i).Value
ActiveSheet.Shapes.Range("actReg").Select
With Selection.ShapeRange.Fill.ForeColor.RGB = Range(Range("actRegCode").Value).Interior.Color
Next i
Range("B17").Select
End Sub