Re: How to Insert a slide after the selected slide.



In article <1130283440.527605.151050@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, Coogrr
wrote:
> I want a macro that always inserts a new slide after the selected
> slide. I don't think I need the Index:= command unless I can figure out
>
> how to make it reflect the selected side each time.
>
> Here is what I have and it inserts a new slide after the #2 slide each
> time.
>
> 'Insert new slide'
> '
> ActivePresentation.Slides.Add(Index:=2, Layout:=ppLayoutText).Select
> ActiveWindow.Selection.SlideRange.Layout = ppLayoutBlank

Call ActivePresentation.Slides.Add( _
ActiveWindow.Selection.SlideRange(1).SlideIndex, _
ppLayoutBlank)

Test ActiveWindow.Selection.Type to make sure it's what you expect (ie, slides
and not shapes or nothing)

>
> Any ideas on how to change this to make it do what I need it to do?
>
> Thanks,
>
> Dennis
>

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


.



Relevant Pages

  • Re: Selecting and deleting multiple table rows at the same time wi
    ... PowerPoint presentation and deletes rows based on their position on the ... slide and performs the operation on the next table. ... "Steve Rindsberg" wrote: ... Steve Rindsberg, PPT MVP ...
    (microsoft.public.powerpoint)
  • Re: Dumb question time: How do I insert a hyperlink?
    ... I read her post to mean LINK to the viewer. ... >>> the last slide, ... >> Steve Rindsberg, PPT MVP ...
    (microsoft.public.powerpoint)
  • Re: A question about LiveWeb
    ... Echo [MS PPT MVP] http://www.echosvoice.com ... Fixing PowerPoint Annoyances http://www.oreilly.com/catalog/powerpointannoy/ ... page fit the slide, it looked as if the view had zoomed in. ... making the web browser control smaller in this manner helps. ...
    (microsoft.public.powerpoint)
  • Re: Commentry under every page of presentation
    ... this text to appear in the notes beneath each slide in Normal view as opposed ... In article, Dave Neve wrote: ... Steve Rindsberg, PPT MVP ... Sept 21-24, San Diego CA, USA ...
    (microsoft.public.powerpoint)
  • Re: Combo Box
    ... What's supposed to trigger the macro TO run? ... slide based on the property of 3 radio buttons located on slide 1. ... ElseIf ActivePresentaton.Slides.OptionButton1 = True Then ... Steve Rindsberg, PPT MVP ...
    (microsoft.public.powerpoint)