how to bring all the pages data into a single page.
i think i had asked this before, but not sure about this.
I have a "FlattenPages" macro but it calls a couple of other macros. I haven't bothered trying to "streamline" it.
Sub FlattenPages() Dim p As Page, s As Shape, sr As ShapeRange Dim i& Optimization = True ActiveDocument.BeginCommandGroup "FlattenPages" ActivePage.CreateLayer "Work Layer" For i = 1 To ActiveDocument.Pages.Count Set sr = ActiveDocument.Pages(i).Shapes.All For Each s In srsr.MoveToLayer ActiveLayerNext sNext iCall delEmptyPagesCall MoveToLayer1ActiveLayer.DeleteActiveDocument.EndCommandGroupOptimization = False ActiveWindow.RefreshEnd Sub
Sub delEmptyPages() Dim p As Page For Each p In ActiveDocument.Pages If p.Shapes.All.Count = 0 Then p.Delete End If If ActiveDocument.Pages.Count = 1 Then Exit Sub End If Next pEnd Sub
Sub MoveToLayer1() Dim shp As ShapeFor Each shp In ActiveLayer.Shapes shp.Layer = ActivePage.Layers("Layer 1") NextActiveWindow.RefreshEnd Sub