+ Reply to Thread
Results 1 to 1 of 1

VBA to deselect Slicer item not automatically refreshing excel table

  1. #1
    Registered User
    Join Date
    05-18-2013
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2010
    Posts
    9

    VBA to deselect Slicer item not automatically refreshing excel table

    Update - It turned out that the issue that I was facing due to an unrelated cause (basically a line of code that needed to be moved earlier in the function. The same code to update the slicer works perfectly fine now.

    Thank you all!


    -------------------------------
    Hi,

    I am trying to use VBA to automatically deselect a specific item - 'blank' on a slicer that points to a normal excel table (not a PivotTable).

    Below is the code I am using:

    Please Login or Register  to view this content.
    When the code is run, I can see that the slicer item 'blank' is deselected, as I want. However, the associated excel table is not autofiltered, meaning, all the rows associated with the slicer item 'blank' are still visible even though the slicer item is deselected. When I toggle the 'blank' slicer item off and on again manually, the table is filtered as expected.

    To my mind, it appears to be some kind of 'refresh issue' - the table/slicer is not automatically refreshed/reapplied after the code is run.

    If somebody can help me understand the cause and how to fix it, I will be really grateful!
    Last edited by pgk_05; 05-28-2020 at 11:15 AM. Reason: Resolved

+ 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. [SOLVED] Deselect Item in Pivot Filter - VisibleItemsList
    By nickytraps in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-17-2019, 03:23 PM
  2. Refreshing a pivot table with slicer takes more time, computer problem ?
    By karmapala in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-07-2019, 05:54 AM
  3. [SOLVED] Automatically select new data when refreshing Pivot Table
    By Chris McGlothen in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 04-26-2017, 02:32 PM
  4. [SOLVED] Run macro to change pivot table row field when user selected a slicer item
    By Chrispelletier in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2016, 09:44 AM
  5. Excel slicer remove unwanted item
    By bt123123 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-12-2016, 08:31 AM
  6. Deselect all pivot slicer items
    By K1M6O in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-02-2014, 04:37 AM
  7. How do I deselect an item from a ListBox
    By skysurfer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-27-2010, 10:59 AM

Tags for this Thread

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