![]() |
|
#1
|
|||
|
|||
![]()
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! |
#2
|
|||
|
|||
![]()
all good solved myself - incase anyone wants to know
Sub NAME_OF_MACRO() 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:\....ADD YOUR FILE LOCATION HERE", CurrentSlideIndex, 17, 17 ActiveWindow.ViewType = ppViewNormal Else CurrentSlideIndex = 0 ' no slides End If Else CurrentSlideIndex = ActiveWindow.Selection.SlideRange.SlideIndex End If End Sub |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PowerPoint 2003 - Change default location for Insert Picture | Fee | PowerPoint | 0 | 05-12-2011 02:15 AM |
![]() |
MorganBlythe | Word | 5 | 03-09-2011 05:41 PM |
lost password in Powerpoint 2003 | roytom | PowerPoint | 0 | 07-14-2010 05:19 AM |
2003 Powerpoint - Custom Animation OVER movie | Chrisburke23 | PowerPoint | 0 | 10-15-2009 08:03 AM |
Powerpoint 2003 - slides with Excel text | franklyorange | PowerPoint | 0 | 08-19-2008 09:30 AM |