Hi,
Im trying to create a code that if in row D a cell has no color, it turns the value in ""
if tryed a few ways but none worked
here are some i tryed.
![]()
Sub Methode1() Sheets("Begroting").Range ("D4:D650") If .Interior.ColorIndex = 0 Then .Cells = "" End If End Sub
![]()
Sub Methode2() Dim i As Long With ActiveWorkbook.Sheets(1) For i = 100000 To 1 Step -1 If .Cells(i, "D") = ".Interior.ColorIndex = 0" Then .Cells(i, "D").Value = "" End If Next i End With End Sub
Bookmarks