1. 首页>动态 > 动态

word批量修改图片大小 宏(word批量修改图片大小)

作者:张夕
2023年08月27日 02:35
动态

你们好,最近小元发现有诸多的小伙伴们对于word批量修改图片大小 宏,word批量修改图片大小这个问题都颇为感兴趣的,今天小活为大家梳理了下,一起往下看看吧。

1、 打开word,工具-宏-宏(或者直接按Alt F8)进入宏界面,如下图。

2、 输入一个宏名,这个宏名是自己起的,只要能记住就行。

3、 宏命名后,点击创建进入Visual Basic编辑器,输入以下代码并保存。

4、 Sub setpicsize()'设置图片大小。

5、 图片的数量

6、 Continue to the next step when an error occurs' Ignore the error.

7、 Forn=1 ToActivedocument .嵌入式形状。'计数'内嵌形状类型图片

8、 Activedocument embedded shape. Height=400ft Set the height of the picture to.

9、 400pxActivedocument。 Embedded shape. Width=300ft Set the width of the picture.

10、 300 pxnextnfon=1 to active document。 Shape. Calculate shape type picture

11、 Activedocument shape (n) Height=400 ft. Set the picture height to 400pxActivedocument. Shape (n). Width=300ft Set the picture width to 300pxNextnEnd connector.

12、 回到word,工具-宏-宏(或者直接按Alt F8),再次进入宏界面,选择刚才编辑的宏,点击“运行”按钮。(如果图片比较多,可能需要一些时间。)

以上就是word批量修改图片大小这篇文章的一些介绍,希望对大家有所帮助。

推荐阅读