- word投标书制作教程:word输入公式后鼠标变成下标样式该怎么办?
- word宣传海报怎么制作教程:word删除空白页的四种方法
- word做表格教程基本操作:Word文档功能如何画图做出五星红旗
- word文档教程基本操作:Word如何批量修改标题格式 Word批量修改标题格式方法
最近发现,以前存了很多图片在word,但图片的很大,有的很小,规格都不一样,word教程基础入门,堆在文档里面很难看,为了美观,今天,小编就教大家在Word中利用宏批量修改图片大小的操作方法,欢迎大家来到学习。
Word利用宏批量修改图片大小的方法
大家看看我是怎么样利用宏批量修改word中所有图片大小,
先打开存有图片的word。
在打开的文档中,选择在“工具”菜单中选择“宏”–“宏”。
随后弹出“宏”对话框,WORD上下页,在宏名中输入setpicsize。
宏名起好了,单击“创建”按钮进入Visual Basic 编辑器,word制作表格教程基础入门,输入如下代码
Sub setpicsize() '设置图片大小Dim n '图片个数On Error Resume Next '忽略错误For n = 1 To ActiveDocument.InlineShapes.Count 'InlineShapes类型图片ActiveDocument.InlineShapes(n).Height = 400 '设置图片高度为 400pxActiveDocument.InlineShapes(n).Width = 300 '设置图片宽度 300pxNext nFor n = 1 To ActiveDocument.Shapes.Count 'Shapes类型图片ActiveDocument.Shapes(n).Height = 400 '设置图片高度为 400pxActiveDocument.Shapes(n).Width = 300 '设置图片宽度 300pxNext nEnd Sub
关闭入Visual Basic 编辑器,返回word,重新选择“工具”–“宏”–“宏”(或者直接按Alt+F8),再次进入宏的界面,在弹出的宏名中选择"setpicsize",最后点击“运行”—确认即可快速地批量修改word中所有图片大小,注意这里把图片大小都修改成Height = 400,Width = 300,这个规格大家可以需要改变的~
上一篇:word幻灯片制作教程:word怎么利用宏批量设置图片大小 下一篇:word变成ppt制作教程:word2007怎么设置横向页面
郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。