qianjiashi

word 宏批量修改图片的大小

 

Sub 批量图片大小()
Dim iSha As InlineShape
For Each iSha In ActiveDocument.InlineShapes
If iSha.Type = wdInlineShapePicture Then
\'iSha.LockAspectRatio = msoFalse \'不锁定纵横比
iSha.LockAspectRatio = msoTrue \'锁定纵横比
iSha.Width = CentimetersToPoints(30) \'宽CM
\'iSha.Height = CentimetersToPoints(21) \'高CM
End If
Next
End Sub

 

分类:

技术点:

相关文章:

  • 2021-05-06
  • 2021-12-26
  • 2021-12-26
  • 2021-12-26
  • 2021-08-20
  • 2022-12-23
  • 2021-12-05
  • 2022-02-11
猜你喜欢
  • 2021-12-26
  • 2021-12-12
  • 2021-12-26
  • 2022-01-26
  • 2021-12-31
  • 2021-12-16
  • 2021-12-26
相关资源
相似解决方案