PowerPivot Slicer selection based on cell value using VBA
I'm having some issues in automating a PowerPivot slicer using vba. What I am trying to do is have the slicer update and only select what is in a certain cell. So for example assuming the cell was J3 then whatever was typed in J3 that's what would get updated in the slicer. My values in my slicer are just numbers. The code I currently have (which doesn't work) throws a run time error is below. The formula name of the slicer is "Syndicatenumber" and the cell I would like it to look at and then update is cell J3. Anythoughts/help would be much appreciated. Many thanks Public Sub Worksheet_Change