saving text

M

Mac

I have a 240 paragraph document that needs to be saved as 240 individual documents. When I hi-lite the paragraph and save as, it takes the whole document. I there a way I can save only the selected text as a document. I have doe this for years in Word Perfect where it asks if you only want to save the selected text, but do not get that kind of prompt in Word. Any help?
 
G

Graham Mayor

The following macro will cut the selected text and save it as a new
document.

Sub CutAndSaveSelectedAsNewDoc()
Selection.Cut
Documents.Add Template:="Normal", NewTemplate:=False, DocumentType:=0
Selection.Paste
ActiveDocument.Save
ActiveDocument.Close
End Sub

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP

Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 

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