Consulting

Results 1 to 4 of 4

Thread: Solved: Add slide to current position

  1. #1
    VBAX Regular
    Joined
    Feb 2008
    Posts
    58
    Location

    Solved: Add slide to current position

    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:

    [VBA]
    Application.ActivePresentation.Slides.Add 1, ppLayoutTwoColumnText
    [/VBA]

    Any help would be much appreciated.

    Annette

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,443
    Location
    [vba]

    Application.ActivePresentation.Slides.Add ActiveWindow.View.Slide.SlideNumber, ppLayoutTwoColumnText
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Feb 2008
    Posts
    58
    Location

    Add slide to current position

    Problem Solved - Very many thanks - works perfectly.
    Last edited by ABrown; 04-22-2008 at 12:14 AM. Reason: Problem Solved

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,443
    Location
    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.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •