Consulting

Results 1 to 3 of 3

Thread: 2013 Slicer Events

  1. #1

    2013 Slicer Events

    I've got a workbook with 2 worksheets, "Search" and "Data". The "Search" worksheet has 4 slicers that filter the rows in the "Data" sheet. I also have a userform that activates when the workbook is opened that gives the user the ability to pre-filter records by year (see attached slicer.jpg). What VBA event can I use to capture when ANY of the slicers on the "Search" worksheet have been clicked???

    Hope you can help, Perry
    Attached Images Attached Images

  2. #2
    VBAX Guru mancubus's Avatar
    Joined
    Dec 2010
    Location
    "Where I lay my head is home" :D
    Posts
    2,644
    hi.

    see if this article helps:
    http://www.jkp-ads.com/articles/slicers00.asp

    and
    http://www.jkp-ads.com/Articles/slic...lComments=True


    ps: Jan Karel Pieterse is one of our members.
    PLS DO NOT PM; OPEN A THREAD INSTEAD!!!

    1) Posting Code
    [CODE]PasteYourCodeHere[/CODE]
    (or paste your code, select it, click # button)

    2) Uploading File(s)
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) (multiple files can be selected while holding Ctrl key) / Upload Files / Done
    Replace company specific / sensitive / confidential data. Include so many rows and sheets etc in the uploaded workbook to enable the helpers visualize the data and table structure. Helpers do not need the entire workbook.

    3) Testing the Codes
    always back up your files before testing the codes.

    4) Marking the Thread as Solved
    from Thread Tools (on the top right corner, above the first message)

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Perry,

    I am not aware of any of the slicer events being exposed to VBA, but if you select from a slicer the pivot table will reflect that selection, so could you trap the PivotTableUpdate event?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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