December 1999
Intermediate to advanced
480 pages
11h 5m
English
IN THIS CHAPTER
Sending Data to Word
Getting Data from Word
Querying Word for Visio's Use
Severing the Connection
As you have seen earlier, contacting Word within Visio can be done using one of three methods: GetObject(), CreateObject(), and New. The first of these presumes that Word is already up and running. The second and third assume nothing and will launch a new copy of Word, even if it is already running. Listing 23.1 shows the syntax of each.
Public Sub RunWord1() Dim wordApp As Word.Application Set wordApp = GetObject(,"Word.Application") wordApp. Visible= True End Sub Public Sub RunWord2() Dim wordApp As Word.Application ... |
Read now
Unlock full access