Insertng slide from another presentation into active after selected slide

T

Tyron

Cant seem to get this one right, can anybody help please

Sub TabPage()
With Presentations.Open("G:\Tyronne Soanes\Testingb.ppt", msoFalse)
.Slides(70).Copy
.Close
End With
ActivePresentation.Slides.Paste
 
M

Mehmet_ky

PROBLEM, EXACTLY, AGREE MORE ONE WIDE SHAPE TELL ?
--
Güzelliğin Beş Para Etmez,
BendeKi AÅŸk Olmasa....;)


"Tyron":
 
D

David M. Marcovitz

What about:

Sub TabPage()
ActivePresentation.Slides.InsertFromFile _
"G:\Tyronne Soanes\Testingb.ppt", 3, 70, 70
End Sub

This will insert slide 70 of your file after slide 3 of your current
file. Change the 3 to something else to make put it after a different
slide.

--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
T

Tyron

Sorry maybe i did not expalin myself clearly. I need the slide to be
inserted after the current selected slide
 
D

David M. Marcovitz

If you want to run this during Slide Show view, you can use the
following. If you want to run this during Edit/Normal view, uncomment the
third line and comment the line after it.

Sub TabPage()
Dim curSlide As Long
'curSlide = ActiveWindow.Selection.SlideRange(1).SlideIndex
curSlide = ActivePresentation.SlideShowWindow.View.Slide.SlideIndex
ActivePresentation.Slides.InsertFromFile _
"G:\Tyronne Soanes\Testingb.ppt", curSlide, 70, 70
End Sub


--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top