|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
嵌入式图片加边框没问题,浮于文字上方的怎么加边框,已经能找到浮于方字止方的图片,用哪个参数?
Sub Example()
Rem 嵌入式图片加边框
Dim oInlineShape As InlineShape
Application.ScreenUpdating = False
For Each oInlineShape In ActiveDocument.InlineShapes
With oInlineShape.Borders
.OutsideLineStyle = wdLineStyleSingle
.OutsideColor = RGB(0, 0, 0)
.OutsideLineWidth = wdLineWidth150pt
End With
Next
Rem 其它图片加边框
Dim n As Shape
For Each n In ActiveDocument.Shapes
If n.Type = msoPicture Then
With n.Borders
.OutsideLineStyle = wdLineStyleSingle
.OutsideColor = RGB(255, 0, 0)
.OutsideLineWidth = wdLineWidth150pt
End With
End If
Next n
Application.ScreenUpdating = True
End Sub
[url=]附件[/url]
|
|