Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-19-2011, 04:04 PM
twnty2 twnty2 is offline Powerpoint 2003 InsertFromFile without needing index Windows XP Powerpoint 2003 InsertFromFile without needing index Office 2003
Novice
Powerpoint 2003 InsertFromFile without needing index
 
Join Date: May 2011
Posts: 3
twnty2 is on a distinguished road
Exclamation Powerpoint 2003 InsertFromFile without needing index

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!
Reply With Quote
  #2  
Old 05-25-2011, 10:11 PM
twnty2 twnty2 is offline Powerpoint 2003 InsertFromFile without needing index Windows XP Powerpoint 2003 InsertFromFile without needing index Office 2003
Novice
Powerpoint 2003 InsertFromFile without needing index
 
Join Date: May 2011
Posts: 3
twnty2 is on a distinguished road
Default

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
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
PowerPoint 2003 - Change default location for Insert Picture Fee PowerPoint 0 05-12-2011 02:15 AM
Powerpoint 2003 InsertFromFile without needing index MS Word 2003 Index problem 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

Other Forums: Access Forums

All times are GMT -7. The time now is 11:55 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft