PDA

View Full Version : Solved: Add slide to current position



ABrown
04-21-2008, 08:11 AM
I am trying to add a new slide at the current position in normal view. I have the following code which adds a new slide to the first position, but I need to add it where the user is currently positioned. I have tried getting the slide number and using a variable for it but nothing is working. This is the code I have so far:


Application.ActivePresentation.Slides.Add 1, ppLayoutTwoColumnText


Any help would be much appreciated.

Annette

Bob Phillips
04-21-2008, 02:30 PM
Application.ActivePresentation.Slides.Add ActiveWindow.View.Slide.SlideNumber, ppLayoutTwoColumnText

ABrown
04-22-2008, 12:13 AM
Problem Solved - Very many thanks - works perfectly.

Bob Phillips
04-22-2008, 08:54 AM
To mark it solved, go to Thread Tools at the head of the posts and select from there. Only you, the original poster, or an admin can do that.