Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub AppendDocs()
Dim ThisDoc As Document
Dim ThatDoc As Document
' you have file A open
' make it an object
Set ThisDoc = ActiveDocument
' ...do what ever else it is you
' .. are you doing, then save it
' it is still File A
ThisDoc.Save wdSaveChanges
' open file B
Documents.Open Filename:=[i]file B[/i]
' make IT an object
Set ThatDoc = ActiveDocument
' now you can use ThatDoc.whatever
' instead of ActiveDocument.whatever
' it is just shorter code
' do whatever you are doing with file B
' then save File B, as itself
ThatDoc.Save wdSaveChanges
' now grab the whole of File B (ThatDoc)
' and copy it
ThatDoc.Content.Copy
' activate File A again (ThisDoc)
ThisDoc.Activate
' go to the end of the document
' and just in case, add a paragraph mark
Selection.EndKey unit:=wdStory
Selection.TypeParagraph
' and then paste the contents of File B
' File B is now appended to File A
Selection.Paste
' now save the appended file using FileSaveAs
ThisDoc.SaveAs FileName:="AppendedA_B.doc"
' destroy (release) the document objects
Set ThatDoc = Nothing
Set ThisDoc = Nothing
End Sub