0
I am trying to run a code that shows all the items of a Dynamic Table that contain a certain text. I imagined that only using asterisks (*) before and after my keyword I could get results, but the VBA reads the asterisks as literal characters. How do I filter ALL items that have the word written in Inputbox?
Sub FilterCustomers()
Dim f As String: f = InputBox("Type the text you want to filter:")
With Sheets("Customers").PivotTables("Customers_PivotTable")
.ClearAllFilters
.PivotFields("Concatenation for filtering").CurrentPage = "*f*"
End With
End Sub