6,210
社区成员
发帖
与我相关
我的任务
分享
Sub 批量设置图片大小()
Dim odoc As Document
Dim oInShp As InlineShape
Set odoc = ActiveDocument
For Each oInShp In odoc.InlineShapes
With oInShp
If .Type = wdInlineShapePicture Then
.LockAspectRatio = msoTrue
.Width = MillimetersToPoints(50)
End If
End With
Next oInShp
End Sub
Sub 批量设置图片大小()
Dim odoc As Document
Dim oInShp As InlineShape
Set odoc = ActiveDocument
For Each oInShp In odoc.InlineShapes
With oInShp
If .Type = wdInlineShapePicture Then
.LockAspectRatio = msoFalse
.Width = MillimetersToPoints(50)
.Height = MillimetersToPoints(50)
End If
End With
Next oInShp
End Sub