Open an Existing Document : Word Document « Word « VBA / Excel / Access / Word






Open an Existing Document

 
Sub Main()
    Dim wdApp As Word.Application
    
    Set wdApp = GetObject(, "Word.Application")

    wdApp.Documents.Open Filename:="C:\Arrays.docx", ReadOnly:=True, AddtoRecentFiles:=False
End Sub

 








Related examples in the same category

1.Add a word document
2.To create a new document that uses a specific template, use this:
3.Save Changes to a Document
4.To save a document with a new name, use the SaveAs method
5.To close a specific document, you can close the active document or you can specify a document name:
6.Save a document
7.Generating Word 2000 data from an Excel VBA program
8.Load contact table from Access and create letter in Word
9.Close a document