0
我需要將所有圖像設置在右側幷包裝文本。VBA更改字中所有圖像的位置
所以,它看起來喜歡。
Sub convert()
Dim shap As InlineShape, shapa As Shapes, sh As Shape
For Each shap In ActiveDocument.InlineShapes
shap.Select
Selection.Fields.Unlink
With Selection
.WrapFormat.AllowOverlap = True
.WrapFormat.Side = wdWrapBoth
'Selection.Fields.Unlink
End With
Next shap
For Each shap In ActiveDocument.InlineShapes
shap.Select
shap.ConvertToShape
Next shap
ActiveDocument.Shapes.SelectAll
With Selection
.ShapeRange.WrapFormat.Type = wdWrapTopBottom
.ShapeRange.Top = wdShapeTop
.ShapeRange.WrapFormat.Type = wdWrapTopBottom
.ShapeRange.Left = wdShapeRight
End With
End Sub