chirayu
Well-Known Member
Hi All,
I was bored yesterday so I did some research & made a code for a VBA Slicer.
The reason for this research is that Slicers only work for Excel 2010 & above. Anyone who doesn't have it will not be able to use/ view Slicers. So I did it more of as a personal challenge. I will be continuing my research into this but thought this was a good start & might be useful to other for their development needs.
Please note that this code is very basic. Limitations below:
1) Only works with Report Filter
2) Can only use 1 Report Filter at a time
3) Can only use 1 Criteria at a time for Report Filter
4) Manual intervention required as Pivot Name & Filter Name must be specified in code
Manual intervention bit is this for the two pieces of code below:
Must be changed in SliceNDice as well as FilterUpdater
I was bored yesterday so I did some research & made a code for a VBA Slicer.
The reason for this research is that Slicers only work for Excel 2010 & above. Anyone who doesn't have it will not be able to use/ view Slicers. So I did it more of as a personal challenge. I will be continuing my research into this but thought this was a good start & might be useful to other for their development needs.
Please note that this code is very basic. Limitations below:
1) Only works with Report Filter
2) Can only use 1 Report Filter at a time
3) Can only use 1 Criteria at a time for Report Filter
4) Manual intervention required as Pivot Name & Filter Name must be specified in code
Manual intervention bit is this for the two pieces of code below:
Code:
Fname = "Type of Movement" 'Filter you used
Pvt = "PivotTable1" 'Pivot table you want the slicer for
Must be changed in SliceNDice as well as FilterUpdater