+ Reply to Thread
Results 1 to 5 of 5

Update Chart Slicer

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-28-2005
    Location
    Dover, England
    MS-Off Ver
    365
    Posts
    172

    Update Chart Slicer

    I have a xlsm file where I use VBA to import, sort and filter data each day. I also have a 14 day pivot chart slicer which I manually turn on the latest information and turn off the data of of anything greater than 14 days.

    So my question is; can this be automated through VBA so that it selects and displays only the last 14 days of information?

    I would appreciate any assistance on this matter

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480

    Re: Update Chart Slicer

    Start by recording a macro.

    activeworkbook.SlicerCaches("Slicer_Column3").sliceritems(1).Selected = False
    You can control state by using the Selected property.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    11-28-2005
    Location
    Dover, England
    MS-Off Ver
    365
    Posts
    172

    Re: Update Chart Slicer

    Andy - many thanks for the response - I did managed to do the easy bit, but its the bit afterwards that I am struggling with that selects only the most current 14 days

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480

    Re: Update Chart Slicer

    can you post example file.

  5. #5
    Forum Contributor
    Join Date
    11-28-2005
    Location
    Dover, England
    MS-Off Ver
    365
    Posts
    172

    Re: Update Chart Slicer

    Andy - Our security systems prevent me from uploading an excel file. Is there any other way you could receive this information? Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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