title: Why Won't My Macro/VB run from in my PowerPoint presentation
body: <p>I'm trying to add a little interaction to a PowerPoint presentation I'm working on. I'm written a little VB that will increase the size and position a particular chart object when the script runs.  I'm tested the script in design mode and everything seems to work fine.  When, however, I link my code to an action button and try to run it from within the slide show the code does not run.  I do most of my VB in Excel so I have not run across this before. Can anyone suggest a fix for this. My code is set forth below:</p>
  
  <pre><code> Sub MoveChart23()
      Dim s
      For Each s In ActiveWindow.Selection.SlideRange.Shapes
       If s.Name = "Chart 23" Then
        s.Top = 50
        s.Width = 620
        s.Left = 50
        s.Height = 400
       End If
      Next
  End Sub
  </code></pre>
  
  <p>Thanks for your help.</p>