+ Reply to Thread
Results 1 to 2 of 2

Group Lines #2

  1. #1
    Registered User
    Join Date
    11-02-2004
    Location
    Slovenia, LJ
    MS-Off Ver
    2007
    Posts
    40

    Group Lines #2

    Hello

    I already posted this problem, but I'm still struggling with my code. So I will make my problem a little different and I will combine my two previous posts (Raypayette, thank you for you answer, but...):
    How should I group the first 50 from 100 lines on the Sheet1. I know that I can:
    ActiveSheet.Shapes.Range(Array("Line 6", "Line 5"....)).Select
    Selection.ShapeRange.Group.Select

    But what if I won't work with Shape’s Names (“Line 6”...). It is difficult to loop through them-Shape’s Names. I know that there is the second way to work with Shape Objects (Lines,…): that is Index Numbers. I think that I can easilly loop with Index Numbers rather than with Shape’s Names. OK, but I don’t know how to get their Index Numbers. Excel assigned them a default value (on a first come first serve basis, even for deleted shapes).
    Maybe I make my problem unclear, so I will simplify it:
    Which is the most effective way to loop through Shape Objects (Lines). Select and then group them. Any suggestions.

    Thank you in advance

    Drile

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Dr.Ile
    Hello

    I already posted this problem, but I'm still struggling with my code. So I will make my problem a little different and I will combine my two previous posts (Raypayette, thank you for you answer, but...):
    How should I group the first 50 from 100 lines on the Sheet1. I know that I can:
    ActiveSheet.Shapes.Range(Array("Line 6", "Line 5"....)).Select
    Selection.ShapeRange.Group.Select

    But what if I won't work with Shape’s Names (“Line 6”...). It is difficult to loop through them-Shape’s Names. I know that there is the second way to work with Shape Objects (Lines,…): that is Index Numbers. I think that I can easilly loop with Index Numbers rather than with Shape’s Names. OK, but I don’t know how to get their Index Numbers. Excel assigned them a default value (on a first come first serve basis, even for deleted shapes).
    Maybe I make my problem unclear, so I will simplify it:
    Which is the most effective way to loop through Shape Objects (Lines). Select and then group them. Any suggestions.

    Thank you in advance

    Drile
    Hi,

    the simple way to loop through Shape Names is
    Please Login or Register  to view this content.
    but I have not (yet) arrived at 'grouping'.

    Does this give you any pointer
    ---
    added column E & F
    ---
    Last edited by Bryan Hessey; 01-05-2007 at 11:31 PM.
    Si fractum non sit, noli id reficere.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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