mightymike
Board Regular
- Joined
- Feb 11, 2010
- Messages
- 127
Hi all,
Hoping somebody could help me on this one.
I have a pivot table linked to a SQL database which in this instance I thought I would use the slicer tool for filtering as it looks nicer than the usual report filter.
I would like to put the data of one of the slicers into a combo box, bit like how you would with pivotitems.
For the life of me I cant work out the correct code for it, could anybody help?
This is my feeble attempt..
Thanks in advance.
Mike
Hoping somebody could help me on this one.
I have a pivot table linked to a SQL database which in this instance I thought I would use the slicer tool for filtering as it looks nicer than the usual report filter.
I would like to put the data of one of the slicers into a combo box, bit like how you would with pivotitems.
For the life of me I cant work out the correct code for it, could anybody help?
This is my feeble attempt..
Code:
Dim SLSP As SlicerItem
Me.CBSalesPerson.Clear
For Each SLSP In Sheets("Order Book").Slicer("Sales Person").SlicerItems
Me.CBSalesPerson.AddItem SLSP.Name
Next
Thanks in advance.
Mike