title: Changing data source of chart in powerpoint vba
body: <p>I have a bar Chart in PowerPoint and want to select the row (Category 1 - 4, see Screenshot <a href="https://i.stack.imgur.com/fhuG4.png" rel="nofollow noreferrer">1</a>) depending on my selection in the ComboBox.
  This is my Code so far:</p>
  <pre><code>  Private Sub ComboBox1_Change()
    With SlideShowWindows(1).View
  
  
      Select Case ComboBox1.Value
          Case &quot;Category 1&quot;
  
          Case &quot;Category 2&quot;
  
          Case Else
  
      End Select
  
  End With
  End Sub
  </code></pre>
  <p>I have no idea how to select source data when there is no seperate Excel-Sheet. There is just the &quot;Excel-Sheet&quot; in PowerPoint which is generated when inserting the Diagramm.</p>