Hello
I already posted this problem, but I'm still struggling with my code. So I will make my problem a little different (Raypayette, thank you for you answer’s):
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 Number. 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
I already posted this problem, but I'm still struggling with my code. So I will make my problem a little different (Raypayette, thank you for you answer’s):
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 Number. 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