Hide Created Visio Application

B

Bill

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.
 
A

al

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top