怎么批量处理word中的照片?

时间:2026-02-13 00:27:51

1、第一步,新建一个word文档;

怎么批量处理word中的照片?

2、第二步,按ALT+F11键,打开VBA(此界面就是用来编写代码)

怎么批量处理word中的照片?

3、第三步,找到你要处理的word文档,单击右键—一插入——模块,将命令复制

粘帖到对话框中,单击运行即可;具体操作如下:

怎么批量处理word中的照片?

4、批量处理图片大小:修改图片高度和宽度

For Each isha In Activedocument. Inline Shapes

If ishaType wdinline Shape Picture Then

isha. Lockaspectratio= msofalse'不锁定纵横比

isha Width Centimeterstopoints(24.66)3i 5CM

isha Height= Centimeters Topoints(13. 7)7) 5CM

End If

End sub

怎么批量处理word中的照片?

5、方法二、批量处理图片大小(自动为图片命名)

代码如下

Sub Insertpico

Dim myfile As Filedialog

Set myfile Application Filedialog(mso File Dialog Filepicker

With mvfile

nitialfilename = 1:

If Show=-1 Then

For each fn In Selecteditems

怎么批量处理word中的照片?

6、Selection. Movedown

End if

Selection Text= Basename(fn)'函数取得文件名

怎么批量处理word中的照片?

7、Selection Endkey

If Selection Start= Active Document: Content. end-1 Then 'u it

标在文末

怎么批量处理word中的照片?

8、Paragraph'在文末添加一空段

Selection. Movedown

Next fn

Else

怎么批量处理word中的照片?

© 2026 途途旅游
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com