title: Create a new slide in VBA for PowerPoint 2010 with custom layout using Master
body: <p>I have the following VBA code to create a new PowerPoint slide:</p>
  
  <pre><code>longSlideCount = ActivePresentation.Slides.Count
  
  With ActivePresentation.Slides
      Set slideObject = .Add(longSlideCount + 1, ppLayoutTitle)
  End With
  </code></pre>
  
  <p>...which inserts a new slide of type 'ppLayoutTitle', but I am wondering if it is possible to create a custom layout in the 'Slide Master View' and then insert <strong>that</strong> particular slide template into the presentation?</p>
  
  <p>Thanks in advance!!!</p>