Sie nisten SpecialCells()
Methode wollen sich wie folgt:
Sub main()
With Worksheets("Conditions") '<--| change "Conditions" to your actual worksheet name
With .Range("B1", .Cells(.Rows.Count, "B").End(xlUp)) '<-- refer to column "B" cells down to last non empty one
With .SpecialCells(XlCellType.xlCellTypeConstants, xlTextValues) '<-- refer to its "text" cells only
With .Offset(, 1).SpecialCells(XlCellType.xlCellTypeConstants, xlTextValues) '<-- refer to adjacent column "text" cells only
With .Offset(, 1).SpecialCells(XlCellType.xlCellTypeConstants, xlNumbers) '<-- refer to adjacent column "number" cells only
With .Offset(, 1).SpecialCells(XlCellType.xlCellTypeConstants, xlNumbers) '<-- refer to adjacent column "number" cells only
MsgBox .Cells(1, 1).row '<--| get first "multifiltered" cells row
End With
End With
End With
End With
End With
End With
End Sub
Sie Test hinzufügen müssen vor jedem SpecialCells()
zu überprüfen, dass „aktuelle“ Spalte tatsächlich einen Text/Zahlen-Wert hat, eine mit Mischung von Count()
und CountA()
Methode
@salti, hast du das versucht? – user3598756
wie geht das? – salti
Sie nur [klicken Sie auf das Häkchen neben der Antwort, um es von ausgegraut auf ausgefüllt zu schalten] (http://stackoverflow.com/help/someone-answers). Danke – user3598756