0 Replies Latest reply on Apr 4, 2012 7:44 PM by mjelsner

    Grouping Selection in CS 5.5

    mjelsner

      In CS4 I ran this code where I was selecting certain objects on specific layers and then grouping the objects.  In CS 5.5 this code still selects the objects(at least it looks that way in the interface), but then the Object -->Group functionality is not available to me.  I don't understand what is different.  Maybe there is a different way to do this.  Can anyone help?  Here is my code.

       

      For myCounter = 1 To myPageItems

       

           strLayerName = myPage.AllPageItems(myCounter).ItemLayer.name

           If strLayerName <> "Die Lines" And strLayerName <> "CoverProof" Then

       

                Call  myDocument.Select(myPage.AllPageItems.Item(myCounter), InDesign.idSelectionOptions.idAddTo)

       

           End if

      Next

       

      myGroup = myDocument.Groups.Add(myIndesign.Selection)

      Thanks