通过执行宏命令批量给word中的图片加边框

 时间:2024-10-15 14:45:28

1、打开word中的视图标签卡,选择宏,然后查看宏

通过执行宏命令批量给word中的图片加边框通过执行宏命令批量给word中的图片加边框

2、创建宏命令,自己可以命名也可以使用系统中的名字,这个不影响最后的效果

通过执行宏命令批量给word中的图片加边框

3、粘贴如下代码: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 = TrueEnd Sub

通过执行宏命令批量给word中的图片加边框

4、执行宏命令

通过执行宏命令批量给word中的图片加边框

5、最终效果

通过执行宏命令批量给word中的图片加边框
  • 如何将图片批量处理成统一大小
  • 如何在word中使用F4键
  • Excel表格怎么批量插入图片?
  • excel怎么批量插入图片文字名称?
  • Excel如何根据名称导入相对应的图片?
  • 热门搜索
    6年级数学手抄报 关于三国演义的手抄报 爱劳动手抄报内容 青春手抄报内容 防火安全知识手抄报 小学生春节手抄报大全 电子手抄报背景 绿山墙的安妮手抄报 关于消防的手抄报图片 感恩的心手抄报资料