I have set up a slicer that controls 2 different pivot tables attached to the same data, very simple basically synchronizes the tables based on user selection.
After the selection I would like the to fire a macro that re-sizes columns to data for best fit. if I turn on auto-size columns within pivot tables columns are too wide, if I select ALL CELLS then auto fit looks beautiful but I would like for this to happen automatically after user selection.
I have assigned macro to Slicer but then lose slicer functionality, basically fires macro every time you touch slicer, unless you right click, then you can use slicer, but macro does not fire.
I am using Excel 2010.
The desired is for user to select quarter for view, then pivots synch to user selection, then columns auto fit for neatness.
Thanks,
Perry
After the selection I would like the to fire a macro that re-sizes columns to data for best fit. if I turn on auto-size columns within pivot tables columns are too wide, if I select ALL CELLS then auto fit looks beautiful but I would like for this to happen automatically after user selection.
I have assigned macro to Slicer but then lose slicer functionality, basically fires macro every time you touch slicer, unless you right click, then you can use slicer, but macro does not fire.
I am using Excel 2010.
The desired is for user to select quarter for view, then pivots synch to user selection, then columns auto fit for neatness.
Thanks,
Perry
Last edited: