微软文档:
Option Explicit
Sub demo()
Dim oShp As Shape
Dim ilShp As InlineShape
' Loop through all shapes in the document
For Each oShp In ActiveDocument.Shapes
If oShp.Type = msoPicture Then
' Convert to InlineShape
oShp.ConvertToInlineShape
End If
Next
For Each ilShp In ActiveDocument.InlineShapes
If ilShp.Type = wdInlineShapePicture Then
ilShp.WrapFormat.Type = wdWrapInline
End If
Next
End Sub