Microsoft Office Tutorials and References
In Depth Information
Try It
‘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
End Sub
To view the video that accompanies this lesson, please select Lesson 27, available
at the following website: www.wrox.com/go/excelvba .
Search JabSto ::




Custom Search