ich habe eine Tabelle in denen einige Einträge in einer Spalte rot hervorgehoben sind. Diese möchte ich gerne herausfiltern. Ich hoffe auf eine schnelle Antwort.
mit freundlichem Gruß
Dietmar Jauch
Sub rotewerte
dim i as integer, x as integer
x = 1
for i = 1 to cells(rows.count, 1).end(xlup).row
if cells(i, 1).interior.colorindex = 3 then 'rot
cells(x, 8) = cells(i, 1).value
end if
x = x +1
next i
End Sub
Sub rotewerte()
Dim i As Integer, x As Integer
x = 1
For i = 1 To Cells(Rows.Count, 1).End(xlUp).Row
If Cells(i, 1).Font.Bold = True And Cells(i, 1).Font.ColorIndex = 3 Then 'rot
Cells(x, 8) = Cells(i, 1).Value
x = x + 1
End If
Next i
End Sub
Sub FilternNachSchriftfarbe()
Columns(1).Insert shift:=xlToRight
For x = 2 To 3635
'10=Anzahl der Zeilen die zu filtern sind
Cells(x, 1) = Cells(x, 2).Font.ColorIndex
Next x
Columns("J:J").Select
Selection.AutoFilter
Selection.AutoFilter Field:=1, Criteria1:=«3»
Range("J2").Select
End Sub