Reordering a document

J

Justin Hess

Hi,
The main problem at hand is that I need to create a new document that
contains the current documents data, just in a different page order.
I can copy the needed page and paste it into a new document, but i cannot
find a way to paste it at the end of the document.
Please help:(
Thanks
 
C

Cooz

Hi Justin,

I'll provide the VBA since you posted in the Programming section. This macro
copies the current page of the active document:

Sub CopyPage()
ActiveDocument.Bookmarks("\Page").Range.Copy
End Sub

This macro pastes at the end of the active document:
Sub PastePage()
Dim rngCur As Range

With Selection
Set rngCur = .Range
.EndKey Unit:=wdStory
.Paste
End With

rngCur.Select
End Sub

Good luck,
Cooz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top