+ Reply to Thread
Results 1 to 7 of 7

Conect shapes(one by one) with lines.

  1. #1
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Conect shapes(one by one) with lines.

    Hello

    I don't know if it's possible but the idea is clicking a button a line to conect 2 shapes(one by one).

    Can anyone helps with that?

    Thanks in advance for any help
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Conect shapes(one by one) with lines.

    It's possible.

    here some code for your example, it will do all the connections at once but you should get the idea

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Re: Conect shapes(one by one) with lines.

    Thank you very much sir.

    I am happy that i have a reply from an Excel legend!

    This works fine. My idea is that EVERY time that i click a button a new line to conect 2 shapes(1st click=conect shape A with Shape B. 2nd click=conect Shape2 with Shape3 etc...)

    Is this possible? Have you some free time to help me with this?

    Thank you.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Conect shapes(one by one) with lines.

    Assign button to Macro1

    Please Login or Register  to view this content.
    It will loop around and start again if you press the button too many times.

    You probably need to keep a log of what shapes have already been connected.

    And thanks for the kind words

  5. #5
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Re: Conect shapes(one by one) with lines.

    Thank you again.

    I get a

    Combile error

    sub or function not defined
    and "ConnectShapes" part of the code getting blue in the module.

    when i run the code. Do i do something wrong?
    Attached Files Attached Files

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Conect shapes(one by one) with lines.

    You did not include the other code which is the function to create the line and join the shapes.

    Please Login or Register  to view this content.
    I did not repost that code because it did not change.

  7. #7
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Re: Conect shapes(one by one) with lines.

    Wonderful!! Yhank you so much!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] followup top shapes as one colour, exclude 2 shapes
    By deancorleone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2013, 02:14 PM
  2. How To Move Shapes From Another Shapes? (floating shapes)
    By MarcLev in forum Word Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2009, 04:04 PM
  3. auto shapes : lines
    By mike cook in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2008, 02:49 PM
  4. deleting all shapes and lines
    By thadpole in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-28-2005, 06:05 PM
  5. [SOLVED] Can I conect a file to a cell in excel?
    By Bombedin2 in forum Excel General
    Replies: 1
    Last Post: 09-09-2005, 09:05 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1