+ Reply to Thread
Results 1 to 2 of 2

VBA to select certain names from a slicer.

  1. #1
    Registered User
    Join Date
    02-24-2018
    Location
    Charlotte, NC
    MS-Off Ver
    2016
    Posts
    35

    VBA to select certain names from a slicer.

    I'm trying to automate a report and the first step is selecting a group of names from a slicer. I tried to get a base macro by recording but it only showed me selecting a sheet and a cell on the sheet. Below is a picture of what I'm trying to do. The names in blue are what I'm trying to select.
    VBA.PNG

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,908

    Re: VBA to select certain names from a slicer.

    What is your slicer based on?

    Is it OLAP Data model based or based on PivotTable built using traditional method (i.e. from Excel range/table)?
    Or is slicer connected Excel Table.

    Code will differ significantly based on how slicercache is built. Please upload desensitized sample file, it would make it so much easier to help you.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Select dates in Slicer through macro
    By Pawan Kokate in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2017, 04:28 AM
  2. Slicer that will select a column
    By njw499 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 12-15-2016, 11:42 AM
  3. Have a cell equal to the value I select in a slicer?
    By qlikview in forum Excel General
    Replies: 1
    Last Post: 07-07-2015, 02:56 AM
  4. Newbie: Auto Select/un-Select an Range of Slicer Items
    By luckyali in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-23-2014, 09:52 AM
  5. Select fields in slicer with macro
    By joelvankesteren in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-13-2014, 02:21 AM
  6. How to auto select from a Slicer last or top item
    By xtrenge in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-07-2014, 06:22 PM
  7. 'select all' option in slicer
    By Paul-NYS in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-24-2012, 09:23 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1