I've tried this code I found, but all it ever returns is the last error message that the slice name doesn't exist. Here is the code:
Public Function GetSelectedSlicerItems(SNme As String) As String
Dim oSCache As SlicerCache
Dim oSItem As SlicerItem
Dim lCnt As Long...