Need to copy selected pages from a word document or bookmarked pages to another word document

Hi Team,

My requirement is to copy selected pages from a word document to another word document.

I can add multiple pages I need to bookmark. Can I copy all the book marked pages to one new word document .

I have got VBA code to copy selected or bookmarked page to a new word document . But the second time when I try to copy another page , it overwrites the earlier pasted content.

Can u please help me to find a way to copy all my bookmarked pages or required pages to a new word document.

 I want the user to be able to select pages and copy to another word document, when users are going through my document.

Please find my code below.

Sub PageCopy()
    ActiveDocument.Bookmarks("\page").Range.Copy
    Documents.Add DocumentType:=wdNewBlankDocument
    Selection.PasteAndFormat (wdPasteDefault)
    Selection.TypeBackspace
    ActiveDocument.SaveAs FileName:="NewDoc.doc"
    ActiveWindow.Close
   
   End Sub

Please help
February 23rd, 2015 2:27pm

Hi,

Based on my research, we can only copy selected pages from a Word document to another Word document manually or via codes. Since we are not the best resource for coding, I'd recommend you post a new question in the Word for Developers forum for further assistance:

https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=worddev

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.

Steve Fan
TechNet Community Support

Free Windows Admin Tool Kit Click here and download it now
February 26th, 2015 4:18am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics