Consulting

Results 1 to 5 of 5

Thread: Configure z-order position of shape

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Regular
    Joined
    Sep 2020
    Posts
    40
    Location

    Configure z-order position of shape

    Sir need some help.


    I want to replace rectangle shape to my freeform shape within a group(group has four shapes & animation also).
    But not configure the z-order position of new freeform shape(will be same z-order position of rectangle shape)

    So what I have done:
    1.pickup animation of group
    2.Calculated z-order position of rectangle & its 1
    3.Ungroup
    4.paste freeform shape
    5.Capture properties of rectangle such as location and size
    6.apply properties to freeform shape
    7.delete rectangle shape
    8.group all(four shape which include freeform shape also)
    9.apply animation to group
    10.Calculated z-order position of freeform shape & its 4(within group)
    11.WANT TO GIVE SAME Z-ORDER POSITION(ie 1) TO FREEFORM SHAPE AS RECTANGLE SHAPE(I DELETED)


    I try below code but not working. Please help


    Sub reposition()
    Dim osld As Slide
    Dim TZ As Long
    Dim ZO  As Long
    Set osld = ActivePresentation.Slides(1)
    'ZO is z-order position of freeform shape & its 4
    'TZ is z-order position of rectangle shape & its 1
    With osld.Shapes("Group1").GroupItems(ZO)
        While .ZOrderPosition > 1
            .ZOrder msoSendBackward
        Wend
    End With
    Last edited by Aussiebear; 04-27-2023 at 03:31 PM. Reason: Adjusted the code tags

Tags for this Thread

Posting Permissions

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