PowerPoint Powerpoint 2003 InsertFromFile without needing index

Joined
May 19, 2011
Messages
5
Reaction score
0
Hi,

using powerpoint 2003 - need a macro which will add a presentation from another presentation. Ive tried this


ActivePresentation.Slides.InsertFromFile _
"S:\XXX.ppt", 0, 2, 2

However as its indexed the new slide will always land at the front - is there a way to create a macro which doesn't need an index - but rather you select where you want the slide and then run the macro? If there are any ideas please let me know - ive seen a few but they don't explain how to incorporate the above code into the other coding. Please help!
 
Joined
May 23, 2011
Messages
3
Reaction score
0
Have you tried just using hyperlink to the required file, thus running the show within another show.
Sorry dont have much exp with macros, so have made done with ways around what a macro would do.
 
Joined
May 19, 2011
Messages
5
Reaction score
0
not meant to run like that - needs to be printable - i figured it out

Sub test()

If ActiveWindow.Selection.Type = ppSelectionNone Then
ActiveWindow.ViewType = ppViewSlide
ActiveWindow.ViewType = ppViewSlideSorter

If ActiveWindow.Selection.Type = ppSelectionSlides Then
CurrentSlideIndex = ActiveWindow.Selection.SlideRange.SlideIndex
ActivePresentation.Slides.InsertFromFile _
"C:\wherever located", CurrentSlideIndex, 2, 2
Else
CurrentSlideIndex = 0 ' no slides
End If
Else
CurrentSlideIndex = ActiveWindow.Selection.SlideRange.SlideIndex
End If
End Sub
 

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