视图--宏--》查看宏 --编一个宏名,把下列代码加到下面--创建--保存--》运行。。。
Sub Example()
Dim oInlineShape As InlineShape
Application.ScreenUpdating = False
For Each oInlineShape In ActiveDocument.InlineShapes
With oInlineShape.Borders
.OutsideLineStyle = wdLineStyleSingle
.OutsideColorIndex = wdColorAutomatic
.OutsideLineWidth = wdLineWidth050pt
End With
Next
Application.ScreenUpdating = True
End Sub
本文介绍了一种使用VBA宏来统一设置Word文档中所有内联形状边框样式的技巧。通过编写简单的VBA代码,可以批量修改文档中图片和其他内联元素的边框线型、颜色和宽度。
1259

被折叠的 条评论
为什么被折叠?



