T
Tom Bunzel
Hi,
(I posted this on the 2003 beta site but this is probably
a better venue. Sorry for duplication).
I am trying to send data from Excel to Visio, and can do
it if I open Visio manually first (as ActiveDocument), but
can't seem to get a Visio file to open from scratch.
I have scoured the dev books and tried different code
combinations like what I am adding below. I have set my
references in the VBA Editor and I am using the beta
version for 2003.
Essentially I want to open a Visio file (template or
drawing), make stuff happen, and then display the page
full screen.
If anyone can help me on this I would appreciate it.
-- Tom
Dim AppVisio As Visio.Application
Dim FileVisio As Visio.Document
Dim PageVisio As Visio.Page
Set AppVisio = GetObject(, "Visio.Application")
AppVisio.Documents.Open ("C:\Documents and
Settings\Tom\Desktop\Projects\stuff.vsd")
or
AppVisio.Document.Open ("C:\Documents and
Settings\Tom\Desktop\Projects\stuff.vsd")
(I posted this on the 2003 beta site but this is probably
a better venue. Sorry for duplication).
I am trying to send data from Excel to Visio, and can do
it if I open Visio manually first (as ActiveDocument), but
can't seem to get a Visio file to open from scratch.
I have scoured the dev books and tried different code
combinations like what I am adding below. I have set my
references in the VBA Editor and I am using the beta
version for 2003.
Essentially I want to open a Visio file (template or
drawing), make stuff happen, and then display the page
full screen.
If anyone can help me on this I would appreciate it.
-- Tom
Dim AppVisio As Visio.Application
Dim FileVisio As Visio.Document
Dim PageVisio As Visio.Page
Set AppVisio = GetObject(, "Visio.Application")
AppVisio.Documents.Open ("C:\Documents and
Settings\Tom\Desktop\Projects\stuff.vsd")
or
AppVisio.Document.Open ("C:\Documents and
Settings\Tom\Desktop\Projects\stuff.vsd")