诸多的对于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),再次进入宏界面,选择刚才编辑的宏,点击“运行”按钮。(如果图片比较多,可能需要一些时间。)
关键词: