Microsoft Office Tutorials and References
In Depth Information
‘Using late binding in this example, create a Word application.
Set appWord = CreateObject(“Word.Application”)
‘Make the created Word application visible.
appWord.Visible = True
‘Open the requested Word document name.
Set wdDoc = appWord.Documents.Open(myDocName)
‘Release the reserved memory in VBA for the declared Object variables
‘now that they have served their purpose and are no longer needed.
Set wdDoc = Nothing
Set appWord = Nothing
To view the video that accompanies this lesson, please select Lesson 27, available