Height:=GH + 1, Anchor:=myRange) Set myLine = shpCanvas.CanvasItems.AddLine(0, 0, 0, 0) myLine.Select Selection.Delete .Paste shpCanvas.CanvasItems.SelectAll Application.Run "DrawUngroup" '取消组合 shpCanvas.WrapFormat.Type = wdWrapInline '嵌入式图形格式 If TF = True Then shpCanvas.Select .Cut '定义一个RANGE对象,为段尾位置 Set myRange = ActiveDocument.Range(.Paragraphs(1).Range.End - 1, .Paragraphs(1).Range.End - 1) myRange.Select .Paste End If End If End If End With Application.ScreenUpdating = True End Sub '----------------------
成品如下,请下载后以加载项形式加载。
WXiOv7v2.rar
(11.48 KB, 下载次数: 59)
|