諸多的對于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),再次進入宏界面,選擇剛才編輯的宏,點擊“運行”按鈕。(如果圖片比較多,可能需要一些時間。)
關鍵詞: