Hide Created Visio Application

Hide Created Visio Application

Post by Bill » Sun, 28 Sep 2003 08:29:01


I know how to create a Visio application and run VBA code
on it from a macro in Word 2000. The Visio window opens
up and runs the macro, then closes when I use app.quit.

How can I create an application object which runs without
showing on the screen? My macro captures some information
from the Word ActiveDocument and creates a picture in
Visio, which it writes to a file, and then loads into the
Word file as an embedded object.

I don't want the user to see - or even wait for all the
screen updates - the Visio application as it runs the
macro. I can't find how to do this in the online help.
 
 
 

Hide Created Visio Application

Post by al » Sun, 28 Sep 2003 20:29:02

this from the visio developers reference



Represents an instance of Microsoft Office Visio. An
external program typically creates or retrieves an
Application object before it can retrieve other Visio
objects from that instance. Use the Microsoft Visual Basic
CreateObject function or the New keyword to run a new
instance, or use the GetObject function to retrieve an
instance that is already running. You can also use the
CreateObject function with the InvisibleApp object to run
a new instance that is invisible. Set the value of the
InvisibleApp object's Visible property to True to show it.


information