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!
 
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.
 
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
 
Back
Top