Consulting

Results 1 to 20 of 29

Thread: Grouping of shapes in PowerPoint VBA

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #21
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,724
    Location
    Hello Paul, I am including something like:

    If S1.bottom falls anywhere between (S2.Top and S2.Top + 0.5). Because the shapes seems like touching but they are little away but close enough (creating an illusion). is there any effective way to check for this, can using of multiple operators cause problem?
    I used .5 as a tolerance from your PM, but you might have to adjust it to establish your own 'close enough'

    What is shape1.top + shape1.height?

    what is shape2.top?

    What is the difference?

    Attach a sample PP if you want


    Edit

    ver 3 has close shapes and a msgbox macro to show measurements

    ver 4 has different tolerances to define close (i.e 2 instead of .5)

    I don't see the behavior in your #19, so attach an example and I'll look
    Attached Files Attached Files
    Last edited by Paul_Hossler; 09-19-2019 at 07:50 AM.
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

Posting Permissions

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