VBA Excel - Select Multiple Slicer Items using a list in Column -


i looking vba select multiple items in slicer using list of names in column a.

i need loop through column , if matches slicer item select otherwise not select. here have been able find far not working:

with activeworkbook.slicercaches("slicername")  = 1 .sliceritems.count j = 1 .sliceritems.count      if .sliceritems(i).caption = worksheets("sheet1").range("a" & j).value       .sliceritems(i).selected = true       else       .sliceritems(i).selected = false       end if                          next j     next end 


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -