Sub
Schaltfläche1_Klicken()
Dim
i
As
Long
, loSpalte
As
Long
, Farbwerte
As
Long
Farbwerte = 2
With
Worksheets(
"Tabelle1"
)
loSpalte = .Cells(Farbwerte, .Columns.Count).
End
(xlToLeft).Column
For
i = 1
To
loSpalte
If
.Cells(Farbwerte, i) <>
""
And
IsNumeric(.Cells(Farbwerte, i))
Then
.Cells(Farbwerte, i).Offset(-1).Interior.Color = .Cells(Farbwerte, i)
End
If
Next
i
End
With
End
Sub