How to save current or each page as separate Word document?
If there are multiple pages in your Word document, now, you just need to save only one current page as a new Word file. Normally, you can copy and paste the current page data to a new Word file and then save it. But, in this article I will talk about how to save current or each page as separate documents from a Word file.
Save current page as new Word document with VBA code
Save each page as separate Word documents with Kutools for Word
Save current page as new Word document with VBA code
The following VBA code can help you to save a current page content into a new Word file, please do as this:
1. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.
2. Click Insert > Module, and paste the following code in the Module Window.
VBA code: Save current page as new Word document:
Sub SaveCurrentPageAsANewDoc()
Dim xDoc As Document
Dim xNewDoc As Document
Dim xFileName As String
Dim xFolderPath As Variant
Dim xDlg As FileDialog
Set xDoc = ActiveDocument
xFileName = InputBox("Enter file name here: ", "KuTools for Word")
If xFileName = "" Then Exit Sub
Set xDlg = Application.FileDialog(msoFileDialogFolderPicker)
If xDlg.Show = -1 Then
xFolderPath = xDlg.SelectedItems(1)
xDoc.Bookmarks("\Page").Range.Select
Selection.Copy
Set xNewDoc = Documents.Add
Selection.Paste
xNewDoc.SaveAs xFolderPath & "\" & xFileName & ".docx"
xNewDoc.Close
End If
End Sub
3. And then, press F5 key to run this code, in the popped out dialog box, please enter a name for the new file, see screenshot:
4. Then, click OK button, and in the second popped out window, please choose a folder to output the new file, see screenshot:
5. Click OK button, the current page content has been saved as a new Word file, you can go to the folder to view the result.
Save each page as separate Word documents with Kutools for Word
If you want to save each page of the whole document as separate files, the Kutools for Word’s Split function can do you a favor.
Kutools for Word : with more than 100 handy Word add-ins, free to try with no limitation in 60 days. |
After installing Kutools for Word, please do with following steps:
1. Click Kutools Plus > Split, see screenshot:
2. In the Split Document dialog box:
(1.) Select Page from the Split by drop down list;
(1.) Click button to choose a folder to output the new files;
(2.) And then, specify the prefix for the new saved files as you need.
3. After finishing the settings, click OK button to start splitting, and then, all the pages in the Word document have been saved as separate files in the specific folder as following screenshot shown:
Click to download Kutools for Word and free trial now!
Best Office Productivity Tools
Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!
🤖 Kutools AI Assistant: Transform your writing with AI - Generate Content / Rewrite Text / Summarize Documents / Inquire for Information based on Document, all within Word
📘 Document Mastery: Split Pages / Merge Documents / Export Selection in Various Formats (PDF/TXT/DOC/HTML...) / Batch Convert to PDF / Export Pages as Images / Print Multiple Files at once...
✏ Contents Editing: Batch Find and Replace across Multiple Files / Resize All Pictures / Transpose Table Rows and Columns / Convert Table to Text...
🧹 Effortless Clean: Sweap away Extra Spaces / Section Breaks / All Headers / Text Boxes / Hyperlinks / For more removing tools, head to the Remove group...
➕ Creative Inserts: Insert Thousand Separators / Check Boxes / Radio Buttons / QR Code / Barcode / Diagonal Line Table / Equation Caption / Image Caption / Table Caption / Multiple Pictures / Discover more in the Insert group...
🔍 Precision Selections: Pinpoint Specific Pages / Tables / Shapes / Heading Paragraphs / Enhance navigation with more Select features...
⭐ Star Enhancements: Navigate to Any Location / Auto-Insert Repetitive Text / Toggle Between Document Windows / 11 Conversion Tools...