Word

創(chuàng)新互聯(lián)建站-專業(yè)網(wǎng)站定制、快速模板網(wǎng)站建設(shè)、高性價(jià)比靈石網(wǎng)站開發(fā)、企業(yè)建站全套包干低至880元,成熟完善的模板庫(kù),直接使用。一站式靈石網(wǎng)站制作公司更省心,省錢,快速模板網(wǎng)站建設(shè)找我們,業(yè)務(wù)覆蓋靈石地區(qū)。費(fèi)用合理售后完善,10年實(shí)體公司更值得信賴。宏設(shè)置圖片大小
1. Alt+F8, Create 一個(gè)Macro
2. 輸入Macro名,進(jìn)入編輯
---按比例縮小大量圖片
Sub alex() '設(shè)置圖片大小
Dim n '圖片個(gè)數(shù)
On Error Resume Next '忽略錯(cuò)誤
For n = 1 To ActiveDocument.InlineShapes.Count 'InlineShapes類型圖片
picheight = ActiveDocument.InlineShapes(n).Height
picwidth = ActiveDocument.InlineShapes(n).Width
ActiveDocument.InlineShapes(n).Height = picheight * 0.5 '設(shè)置高度為0.5倍
ActiveDocument.InlineShapes(n).Width = picwidth * 0.5 '設(shè)置寬度為0.5倍
Next n
For n = 1 To ActiveDocument.Shapes.Count 'Shapes類型圖片
picheight = ActiveDocument.Shapes(n).Height
picwidth = ActiveDocument.Shapes(n).Width
ActiveDocument.Shapes(n).Height = picheight * 0.5 '設(shè)置高度為0.5倍
ActiveDocument.Shapes(n).Width = picwidth * 0.5 '設(shè)置寬度為0.5倍
Next n
End Sub
---圖片大小設(shè)置成絕對(duì)值 1cm=28px
Sub alex() '設(shè)置圖片大小
Dim n '圖片個(gè)數(shù)
On Error Resume Next '忽略錯(cuò)誤
For n = 1 To ActiveDocument.InlineShapes.Count 'InlineShapes類型圖片
picheight = ActiveDocument.InlineShapes(n).Height
picwidth = ActiveDocument.InlineShapes(n).Width
ActiveDocument.InlineShapes(n).Height = 280 '設(shè)置高度為280px
ActiveDocument.InlineShapes(n).Width = 364 '設(shè)置寬度為364px
Next n
For n = 1 To ActiveDocument.Shapes.Count 'Shapes類型圖片
picheight = ActiveDocument.Shapes(n).Height
picwidth = ActiveDocument.Shapes(n).Width
ActiveDocument.Shapes(n).Height = 280 '設(shè)置高度為280px
ActiveDocument.Shapes(n).Width = 364 '設(shè)置寬度為364px
Next n
End Sub
3. 保持,再次進(jìn)入原來(lái)的word,alt-f8 run這個(gè)宏
文章標(biāo)題:Word宏設(shè)置圖片大小-創(chuàng)新互聯(lián)
轉(zhuǎn)載源于:http://jinyejixie.com/article8/coejop.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設(shè)計(jì)公司、用戶體驗(yàn)、App開發(fā)、企業(yè)建站、搜索引擎優(yōu)化、建站公司
廣告
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源:
創(chuàng)新互聯(lián)