Hi Larry,
Thanks for you reply. The language is VB.
I've read the scripting reference and I've tried as below. Actually, I don't know how to put a particular item into a groupitem, please advise.
1. get all the pageitems list in the active doc.
pageitemlist = doc.PageItems
2. create a groupitem in the doc.
groupitem = doc.GroupItems.Add
3. get the typename of the pageitems list in the FOR LOOP, add the pageitems into the groupitem according to the item type
If pageitems.item(i).typename = "textframe" then
tf = pageitems.item(i)
tf = groupitem.Textframes.add <= ????
If pageitems.item(i).typename = ...
......
The result show out that all the items as in the original and not grouped together.
Thanks.
Henry