Thanks and apologies for being not precise. The cause of the B2 change is a formula.
In the meantime I could harmonize some parts of the sheet. For calculation purposes I still need the number system but my choice field can contain "aaa + bbb", "aaa" and "bbb". So maybe the code can be adapted so that it doesn't need the numbers anymore.
The updated example 3 contains the same adapted data in sheets 1 and 2 and different VBA code
Sheet 1:
Sheet 2:
But somehow it doesn't work on sheet 2 when I enter "aaa + bbb" instead of 1 ....
Still I am aiming the same - but it doesn't matter anymore if the filter is caused by the change of a number or text.
Your help is greatly appreciated.
Bookmarks