全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 Excel
1111 2
2013-11-24
悬赏 20 个论坛币 未解决
我有一个file,这个file 270页,老板要求每30页就要割成一份然后save,但是我只懂割成将270页成一页一页然后save,不知道有什么办法,
以下是割成一页页的方法,如何modify?

另外为什么会每次个了后会多一页白的,如何消除它?
Sub BreakOnPage()   ' Used to set criteria for moving through the document by page.   Application.Browser.Target = wdBrowsePage   For i = 1 To ActiveDocument.BuiltInDocumentProperties("Number of Pages")            'Select and copy the text to the clipboard.      ActiveDocument.Bookmarks("\page").Range.Copy      ' Open new document to paste the content of the clipboard into.      Documents.Add      Selection.Paste' Removes the break that is copied at the end of the page, if any.      Selection.TypeBackspace      ChangeFileOpenDirectory "C:\"      DocNum = DocNum + 1      ActiveDocument.SaveAs FileName:="test_" & DocNum & ".doc"      ActiveDocument.Close      ' Move the selection to the next page in the document.      Application.Browser.Next   Next i   ActiveDocument.Close savechanges:=wdDoNotSaveChangesEnd Sub   
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2013-11-24 21:32:46
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-12-19 07:27:24
顶!!!!!!!!!!!!!11
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群