Results 1 to 20 of 29

Thread: Grouping of shapes in PowerPoint VBA

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #19
    Quote Originally Posted by Paul_Hossler View Post
    Try changing the line to


        'do they touch
        If Abs(S1.Bottom - S2.Top) <= 0.5 Or Abs(S1.Top - S2.Bottom) <= 0.5 Or Abs(S1.Left - S2.Right) <= 0.5 Or Abs(S1.Right - S2.Left) <= 0.5 Then
            ShapesOverlap = True
            Exit Function
        End If

    to define 'touching' as 'close enough'
    It is working differently. Following is happening:
    For example if group 1, group 2 are sets that already exist, these are grouped as group 3 but shapes in group 1, group 2 are regrouped now.
    Attached Images Attached Images

Posting Permissions

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