Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2006

Tip: Looking for answers? Try searching our database.

Reordering a document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Justin Hess - 06 Mar 2006 12:28 GMT
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
Cooz - 06 Mar 2006 16:00 GMT
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
--
PS: If this is a satisfying answer to your question and you're logged in via
the Microsoft site, please click Yes to "Did this post answer the question?".
Thanks.

> Hi,
> The main problem at hand is that I need to create a new document that
[quoted text clipped - 3 lines]
> Please help:(
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.