W
Wai
Hi,
I have created a graphics consisting of lines and curves using VBA and
grouped all the items. I wish to insert a page break immediately AFTER the
grouped items using VBA (e.g. InsertBreak Type:=wdPageBreak). However, I
failed to do so. The grouped items went to the beginning of the next page as
well. Below is a summary of the codes:
*********************************************************
ActiveDocument.Shapes.AddLine(10, 20, 30, 100).Name = “Line1â€
…Add more lines
Set c = ActiveDocument.Shapes.BuildFreeform(msoEditingCorner, 30,40)
c.AddNodes msoSegmentCurve, msoEditingAuto, 60, 100
…Add more nodes
c.ConvertToShape.Select
set c=nothing
For Each shp In ActiveDocument.Shapes
ActiveDocument.Shapes.Range(Array(…)).Group.Name = “NewGroupâ€
Next
*********************************************************
Please advise
Wai
I have created a graphics consisting of lines and curves using VBA and
grouped all the items. I wish to insert a page break immediately AFTER the
grouped items using VBA (e.g. InsertBreak Type:=wdPageBreak). However, I
failed to do so. The grouped items went to the beginning of the next page as
well. Below is a summary of the codes:
*********************************************************
ActiveDocument.Shapes.AddLine(10, 20, 30, 100).Name = “Line1â€
…Add more lines
Set c = ActiveDocument.Shapes.BuildFreeform(msoEditingCorner, 30,40)
c.AddNodes msoSegmentCurve, msoEditingAuto, 60, 100
…Add more nodes
c.ConvertToShape.Select
set c=nothing
For Each shp In ActiveDocument.Shapes
ActiveDocument.Shapes.Range(Array(…)).Group.Name = “NewGroupâ€
Next
*********************************************************
Please advise
Wai