Severing the Connection

To terminate the connection between Visio and Word, you simply need to quit Word as in

wordObjApplication.Quit
Set wordObjApplication = Nothing

The final line ensures that the Word application object goes out of scope and is removed from memory as well as all objects under the application object.

In the next chapter, you will learn how to contact PowerPoint from Visio. You will also learn how to send data from Visio to PowerPoint and retrieve information from PowerPoint to use in Visio. The chapter will also cover how to query PowerPoint for use in your Visio-based application and learn how to sever the connection when you are finished with the communication.

Get Professional Development with Visio® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.