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

2025-10-26 21:15:42

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中的照片?

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢