将word文档按页数拆分为多个独立文档
1. 把要拆分的文档放入文件夹中,然后打开要拆分的文档。2. 直接按快捷键Alt + F11打开VBA编辑器,选择菜单“插入->模块”3.粘贴下面的代码(没有错误,已验证)Option ExplicitSub SplitEveryFivePagesAsDocuments()Dim oSrcDoc As Document, oNewDoc As DocumentDim strSrcName As String, strNewName As StringDim oRange As R.
原创
2021-01-27 08:49:52 ·
6000 阅读 ·
1 评论