+ Reply to Thread
Results 1 to 3 of 3

Select dates in Slicer through macro

  1. #1
    Registered User
    Join Date
    03-24-2014
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2016
    Posts
    2

    Select dates in Slicer through macro

    Hi guys,

    I am new here in this forum and also learning macro. I have a power pivot that has dates in m/d/yyyy format. I want to select only those dates in slicer which are available in another sheet. There are only 8 dates. Any macro code for this pls share.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,191

    Re: Select dates in Slicer through macro

    Hi Pawan

    Welcome to the Forum. What do you want to do with the dates after selecting them. Ideally an upload of a sample file depicting a before & after will assist us in finding a solution to your enquiry.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    03-24-2014
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2016
    Posts
    2

    Re: Select dates in Slicer through macro

    Hi Sintek,
    Thanks for your reply.
    Well i have created view which will take a value from pivot through getpivot but each week when i will refresh the report I will update a cell with latest date and based on that date last 8 dates which will auto calculated in a same tab need to be selected in slicer. I am sorry but i won't be able to share data as it is very confidential.

+ 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. Slicer that will select a column
    By njw499 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 12-15-2016, 11:42 AM
  2. Select Date Range from a Slicer with macro
    By ajadid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2014, 03:55 PM
  3. 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
  4. Select fields in slicer with macro
    By joelvankesteren in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-13-2014, 02:21 AM
  5. Macro to select date range in slicer
    By handerson0603 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-30-2013, 03:06 PM
  6. 'select all' option in slicer
    By Paul-NYS in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-24-2012, 09:23 AM
  7. Slicer Macro - unfilter another slicer on selection
    By chadheins in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-24-2012, 10:41 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