+ Reply to Thread
Results 1 to 5 of 5

VBA Script for running pivot timeline slicer with date range on different sheet

  1. #1
    Registered User
    Join Date
    05-25-2021
    Location
    Leicester
    MS-Off Ver
    2019 Professional Plus
    Posts
    35

    VBA Script for running pivot timeline slicer with date range on different sheet

    Hi,

    I am hoping someone can help me with some vba script to make below work.

    I have two pivot table running to selecting date on timeline slicer, I want this timeline slicer date to be selected autmatically based on date range enter on different sheet.

    Attached sheet is for example.

    Pivot sheet has two pivot with slicer
    Dashboard sheet has date range
    other two sheets are data for pivots

    thank for help.

    regards

    Nadim
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,232

    Re: VBA Script for running pivot timeline slicer with date range on different sheet

    Code in the Dashboard sheet module:
    Please Login or Register  to view this content.
    Artik

  3. #3
    Registered User
    Join Date
    05-25-2021
    Location
    Leicester
    MS-Off Ver
    2019 Professional Plus
    Posts
    35

    Re: VBA Script for running pivot timeline slicer with date range on different sheet

    Thanks Artik,

    I try pasting the above scrip, but when i close module it disappears, i then try putting private sub to just sub then it showed me below as attached, would you please mind adding script to my life and upload here..?

    regards

    NadimAttachment 814206

  4. #4
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,232

    Re: VBA Script for running pivot timeline slicer with date range on different sheet

    I don't know what you wanted to show in your previous post, as you added the attachment in the wrong way. See the yellow banner at the top of the page.
    The attachment is the added code in the Dashboard sheet module.
    I'm not quite sure if this is what you were expecting, as it only sets the timeline when you change cells B2 and B3 in the Dashboard sheet. In other cases it may not work.

    Artik
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-25-2021
    Location
    Leicester
    MS-Off Ver
    2019 Professional Plus
    Posts
    35

    Re: VBA Script for running pivot timeline slicer with date range on different sheet

    Perfect..! really appreciated.. thank you so much..

+ 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. timeline slicer for start and end date Excel
    By scalise0313 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-04-2022, 07:09 PM
  2. VBA to Capture when a date range is changed in Timeline slicer and update charts
    By KurtCara in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-14-2022, 09:44 AM
  3. TIMELINE Slicer
    By fnabeth in forum Excel General
    Replies: 0
    Last Post: 08-23-2021, 10:43 AM
  4. Timeline Slicer Not Working with Blanks from Date Formula
    By dkramer_AZ in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-10-2020, 04:32 PM
  5. Replies: 3
    Last Post: 09-03-2019, 10:22 PM
  6. [SOLVED] Can't Connect Slicer & Timeline To Two Pivot Tables
    By rahul_ferns76 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-28-2017, 04:11 AM
  7. Timeline and Slicer Help
    By PFDave in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-16-2016, 06:44 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