Let's say you have a layer 1 and a layer 2. With layer 2 as the active layer select multiple shapes that are ALL on layer one. Group those shapes and they automatically move to layer 2 or the active layer. Why? I didn't ask for them to be moved. I simply wanted them to be grouped.
Myron,
Call me crazy but I actually think this is correct behavior. ;-) After all, by definition the ActiveLayer is the Layer you are working on an therefore any changes to shapes not on that Layer will be pulled to it. I know, crazy talk.
Sub GroupKeepLayer() Dim sr As ShapeRange Dim l As Layer Dim s As Shape Set sr = ActiveSelectionRange Set l = sr.Shapes.First.Layer Set s = sr.Group s.MoveToLayer l End Sub
That said, it is easy enough to code a solution.
-Shelby