Consulting

Results 1 to 4 of 4

Thread: Placing shapes on different slides

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Regular
    Joined
    May 2017
    Posts
    18
    Location

    Placing shapes on different slides

    Hello,

    I wanted to add a quick VBA automation as I have to move multiple shapes to dedicated slides. Unfortunately, I can't figure out how to do it (I'm not familiar with arrays). For example: I have fifty shapes on a slide. Each shape should be 'cut' and pasted on a newly added slide. One by one. Below I have attached a code snippet.

    code.jpg

    I think
    slide.Shapes.Paste
    should be change to something like
    Set oshp = slide.Shapes.Paste
    or
    ActivePresentation.Slides(oshp.Parent.SlideIndex + 1).Shapes.Paste
    What I end up with are multiple empty slides and shapes moved from slide 1 to the last one.

    I really appreciate any help.
    Thank you in advance.
    Last edited by YorickG; 06-10-2021 at 02:12 PM.

Posting Permissions

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