I am trying to run a code that filters all the items in a PivotTable that contain a certain text. I figured that just using asterisks (*) before and after mine keyword would get results, but VBA reads asterisks as literal characters. How do I filter ALL items that have the word written in the 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