bring others pages content into the active page - macro please

bring others pages content into the active page - macro please 

Parents
No Data
Reply
  • Javascript 

    var activePageIndex = host.ActiveDocument.ActivePage.Index;

    for(let i =1;i<=host.ActiveDocument.Pages.Count;i++)
    {
        if(i!=activePageIndex)
        {
            let sr = host.ActiveDocument.Pages.Item(i).Shapes.All();
            sr.MoveToLayer(host.ActiveDocument.Pages.Item(activePageIndex).ActiveLayer);
        }
    }
Children