Hi People
Quick question; I currently have some VBA code that filters out results in my pivot table that contain key words. This has worked correctly (which is nice). I am using:
However, in my pivot table i have words starting with "MC" (including the the speech marks).
This means my filter code would need to read:
But this does not work. Is there a way to filter for reserved characters? I know in Java there is but this is the first time I have come across this in VBA.
Thanks in advance
Danny
Quick question; I currently have some VBA code that filters out results in my pivot table that contain key words. This has worked correctly (which is nice). I am using:
Code:
AciveSheet.PivotTables("PivotTable2").PivotFields("Project Name"). _
PivotFilters.Add Type:=xlCaptionDoesNotBeginWith, Value1:="MC"
However, in my pivot table i have words starting with "MC" (including the the speech marks).
This means my filter code would need to read:
Code:
PivotFilters.Add Type:=xlCaptionDoesNotBeginWith, Value1:=""MC""
But this does not work. Is there a way to filter for reserved characters? I know in Java there is but this is the first time I have come across this in VBA.
Thanks in advance
Danny
Last edited: