title: PowerPoint VBA Changing font color of selected item in chart
body: <p>I know this sounds simple, but I haven't found any solution in the web nor this site.</p>
  
  <p>So, I have a macro in Excel that changes the font color of any selected item -- range, chart, textbox, etc. -- and the code is quite simple:</p>
  
  <pre><code>Selection.Font.Color = RGB(0,0,0)
  </code></pre>
  
  <p>But in PowerPoint there is not such thing as the "Selection" wildcard in Excel. In PowerPoint this work well for textboxes --</p>
  
  <pre><code>ActiveWindow.Selection.TextRange.Font.Color = RGB(0,0,0)
  </code></pre>
  
  <p>But it does not work for charts and tables. So, for charts I use this code --</p>
  
  <pre><code>ActiveWindow.Selection.ShapeRange(1).Chart.ChartArea.Format.TextFrame2.TextRange.Font.Fill.ForeColor.RGB RGB(0,0,0)
  </code></pre>
  
  <p>The problem is that it changes all the text in the chart -- title, labels, axis, etc. And I only need to change the font color of the selected item. for example, only the title or only the labels, depending on what the user decides to select.</p>
  
  <p>I don't know how to discriminate what item is selected in the chart, in order to apply the change only to it. For example --</p>
  
  <pre><code>.ChartTitle.Format.Fill.ForeColor.RGB, etc.
  </code></pre>
  
  <p>Is there a way to identify what item is selected? Or to apply the changes only to it? Thank you.</p>