我在二楼代码中,有个错误,SORRY,没注意。你当时应该要讲清楚是不是嵌入式图片。 '* +++++++++++++++++++++++++++++
'* Created By I Love You_Word!@ExcelHome 2005-7-23 14:16:30
'仅测试于System: Windows NT Word: 10.0 Language: 2052
'^The Code CopyIn [ThisDocument-ThisDocument]^'
'* -----------------------------Option Explicit
Sub Example()
Dim MyPicture As Shape, MyInPicture As InlineShape
'如果你的默认粘贴图片的格式为嵌入型,则应该先转换
Set MyInPicture = ActiveDocument.InlineShapes(1)
Set MyPicture = MyInPicture.ConvertToShape
With MyPicture
.WrapFormat.Type = wdWrapSquare '文字环绕为四周型
.WrapFormat.AllowOverlap = False '不允许重叠
End With
End Sub
'---------------------- |