Control Slicer Selections Via Dynamic Range

Rock_Lobster

New Member
Joined
May 16, 2017
Messages
1
Hello all,

I have gone through every link I can find on the subject, and simply cannot find an answer to my problem.

I consider myself pretty decent with VBA, but this one has had me stumped for three weeks.

I have an OLAP pivot table that has a filter for Order Numbers, and a slicer to control said filter. The table shows all SKUs related to these Order Numbers, and the Quantities sold for four regions.

On a second tab, I have a table that I can plug in all orders for the last week, and the Order Number field in this table is a dynamic range.

The idea behind this whole project is that the pivot brings up the SKUs and Quantities which I need, based on the Order Numbers that are in the table on the second tab. This would eliminate the need to individually click into each order in our Intranet, and copy the details to a sheet each time I am working.

What I am attempting to do is utilize VBA to only select those Order Numbers in the slicer that are in the dynamic range, so that the respective SKUs and Quantities show.

*Side Note* - I have tried to run this based on date (the last week), but the issue was that if anything was back ordered from before, but was fulfilled in the last "week", then it brings in all of that old information.

Please help! I would be forever grateful!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,223,723
Messages
6,174,123
Members
452,546
Latest member
Rafafa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top