title: Timeline Slicer Excel 2013 VBA
body: <p>hoping someone can help</p>
  
  <p>I'm trying to call a timeline slicer value in vba so I can control other slicers. I have managed it from cells but I was wondering if it can be controlled by my master slicer </p>
  
  <pre><code>Sub Slicer_Time_Change()
  
  Dim startDate As Date, endDate As Date
  
  startDate = Range("A1") 'Set slicer 1 start date as slicer selection instead
  endDate = Range("B1")    'Set slicer 1 End date as slicer selection instead
  
  
  ActiveWorkbook.SlicerCaches("NativeTimeline_Date1").TimelineState. _
  SetFilterDateRange startDate, endDate
  
  ActiveWorkbook.SlicerCaches )("NativeTimeline_Date2").TimelineState. _
  SetFilterDateRange startDate, endDate
  </code></pre>
  
  <p>End Sub</p>
  
  <p>Many thanks in advance!</p>