是否可以使用VBA为Word 2013文档中的所有图像应用样式或至少提供细边框?
答案 0 :(得分:2)
以下内容应该有效,
Dim pic As InlineShape
For Each pic In ActiveDocument.InlineShapes
pic.Borders.OutsideLineStyle = wdLineStyleSingle
pic.Borders.OutsideLineWidth = wdLineWidth050pt
Next
答案 1 :(得分:2)
如果要将图案应用于图像,请使用此宏:
Sub set_image_to_figure_style()
Dim pic As InlineShape
For Each pic In ActiveDocument.InlineShapes
pic.Select
Selection.Style = ActiveDocument.Styles("Figure")
Next
End Sub