hat jemand eine Idee, ich möchte einen Autofilter variabel gestalten. Das archiv hat mir nicht weitergeholfen.
Sub Makro1()
'Es soll auf "Hallo"& i gefiltert werden
titel1 = "Hallo1"
titel2 = "Hallo2"
titel3 = "Hallo3"
titel4 = "Hallo4"
titel5 = "Hallo5"
titelarray = Array("Titel1", "Titel2", "Titel3", "Titel4", "Titel5")
For i = 1 To 5
Range("B6:J24").Select
Selection.AutoFilter
Selection.AutoFilter Field:=4, Criteria1:=titelarray(i) '
Was mache ich falsch? Ich komme nicht drauf.Viele Grüße
Bernd