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