Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paste to end of document

Status
Not open for further replies.

bruntonm

Programmer
Aug 23, 2002
2
CA
I am copying text from one Word document to another. I have no troubles copying, but I can't figure out how to paste the paragraphs to the end of the document.

Does anyone know how to do this??
 
I usually just paste it in there with Edit>Paste and use the enter key to return down as many spaces as I want. Doesn't that work? Seek not outside yourself; heaven is within.
 
Sorry, I guess I wasn't clear enough. What I am doing is using VBA with a Word template (.dot file). When the file opens, there is a group of options. Depending on the options selected, the code opens other Word documents, copies their contents, then pastes it back into the .dot file.

What I don't know how to do is to paste the text to the end of the .dot file. Does anyone have any ideas??
 
' make sure that your .DOT file is the active document
' then try this bit
ActiveDocument.Content.Select ' selects the main text story
Selection.Collapse wdCollapseEnd
Selection.Paste
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top