title: Python - edit Powerpoint slide contents in a presentation that already exists
body: <p>I'm using Python 2.7.2 and Office 2010 on Windows 7. I have a Powerpoint file that has links to other documents in a directory. I would like to use Python to loop through the shape captions, find matching names in the directory, and create a hyperlink in the Powerpoint file. As long as I can read those shape captions I can do the rest.</p>
  
  <p>I managed to do this and at least open the Powerpoint file:</p>
  
  <pre><code>import win32com.client
  
  Presentation = Application.Presentations.Open("c:\\path\\to\\stnd4.pptx")
  </code></pre>
  
  <p>I have found a number of ways to add slides that don't already exist and add shapes or captions, but I can't seem to find any way to edit <i>existing</i> slides. This lets me add a slide:</p>
  
  <pre><code>Base = Presentation.Slides.Add(1, 12)
  </code></pre>
  
  <p>But anything that tries to open or edit an existing slide just fails:</p>
  
  <pre><code>Base = Presentation.Slides.Open(1)
  Base = Presentation.Slides.Edit(1)
  </code></pre>
  
  <p>I also tried </p>
  
  <pre><code>help(Presentation)
  </code></pre>
  
  <p>but I just get generic <code>win32com</code> info, nothing on Powerpoint slides. Googling didn't turn up much, either. Any clues?</p>