title: Saving a PowerPoint in Excel VBA
body: <p>I have code that creates a new powerpoint consisting of some images from an excel file. I want to save the file using a string variable to define its name. I've done my due diligence searching for solutions with no success, which surprises me based on how basic of a task I'm trying to complete. As of now, I have...</p>
  
  <pre><code>newPowerPoint.ActivePresentations.SaveAs filenamestring, 1
  newPowerPoint.ActivePresentations.Close
  </code></pre>
  
  <p>But I keep getting a whole host of error messages. I have newPowerPoint defined as public in another module<br/></p>
  
  <pre><code>Public newPowerPoint As powerpoint.Application
  </code></pre>
  
  <p>Any suggestions?</p>