Copy Selected Text To New Document

Home Up Search This Site What's New? Audio On CDR Favourites Downloadable files Photo Gallery 2002 Photo Gallery 2003 Photo Gallery 2004/5 Photo Gallery 2006/7 Photo Gallery 2008 UK Photo Gallery Ireland Photo Gallery Cats Photo Gallery 

 

 

Google
 

 

 

There is no charge for using any of the material (for personal use) on this web site, but if you wish to make a contribution to the ever growing running costs, any donation would be much appreciated. Click the adjacent button to access PayPal
Copying Selected Text for Re-use

Word does not provide any obvious way of saving selected text to a new document, but, as usual, there are ways around this. Perhaps the simplest method is to use a macro that copies the selected text to the clipboard, opens a new document then pastes it into that document. The following macros offer variations on the same theme.

Macros

Sub CopySelectedToNewDoc()
Selection.Copy
Documents.Add Template:="Normal", NewTemplate:=False, _
DocumentType:=0
Selection.Paste
End Sub

Sub CopyCurrentPageToNewDoc()
ActiveDocument.Bookmarks("\page").Range.Select
Selection.Copy
Documents.Add Template:="Normal", NewTemplate:=False, _
DocumentType:=0
Selection.Paste
End Sub

Sub CutPageToNewDoc()
ActiveDocument.Bookmarks("\page").Range.Select
Selection.Cut
Documents.Add Template:="Normal", NewTemplate:=False, _
DocumentType:=0
Selection.Paste
End Sub

Spike

A lesser known function of Word is the 'spike' autotext entry, which is a cumulative store of information that you save to it, and which can be reproduced in a document by inserting the 'spike' autotext entry.

To move an item to the Spike, select the text or graphic you want, and then press CTRL+F3.

You can repeat this step for each additional item you want to move to the Spike.

Click in the document where you want to insert the Spike's contents. To insert the Spike's contents and empty the Spike, press CTRL+SHIFT+F3.

To insert the Spike's contents without emptying the Spike, point to AutoText on the Insert menu, and then click AutoText. In the Enter AutoText entries here box, click Spike, and then click Insert.

Word is packaged with a set of supplementary macros. Word 97 packed macros8.dot which is still available for download from the Word MVPS web site http://word.mvps.org/Downloads/index.html.

Experience suggests that most people ignore these extras, but amongst the gems in macros8.dot  are enhanced tools for manipulating the spike. It is a simple matter to copy the macros to normal.dot and create a custom 'spike' toolbar to have the extra commands immediately available.

The spike is thus a useful tool for copying selected sections of a document to a new document, or moving blocks of text within the same document.

The Office clipboard provides a similar measure of functionality, by a different route.