From: Ramsay on
Hi,
We're creating new Word 2007 templates, and some of them require flowchart
functionality from Visio. Our goal is to create a macro within the Word
template to call Visio, open a new drawing and have a custom stencil set open
for users to use. Users would then open create their flowchart/diagram in
Visio, and it would update automatically into the Word template when Visio is
closed.

I'm using the following code to start Visio, however I'm stuck on where to
go from there:

Sub Visio()
Shell "C:\Program Files\Microsoft Office\Office12\VISIO.exe", vbNormalFocus
End Sub

Apologies if this is in the wrong sub-forum...I figured it was a Word
problem first and foremost, and I'll take any Visio-specific questions to the
appropriate forum.

Regards.
From: Doug Robbins - Word MVP on
See http://support.microsoft.com/kb/309603

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"Ramsay" <Ramsay(a)discussions.microsoft.com> wrote in message
news:46C7F23E-9B1B-48C0-8522-9D65CA0ECC7A(a)microsoft.com...
> Hi,
> We're creating new Word 2007 templates, and some of them require flowchart
> functionality from Visio. Our goal is to create a macro within the Word
> template to call Visio, open a new drawing and have a custom stencil set
> open
> for users to use. Users would then open create their flowchart/diagram in
> Visio, and it would update automatically into the Word template when Visio
> is
> closed.
>
> I'm using the following code to start Visio, however I'm stuck on where to
> go from there:
>
> Sub Visio()
> Shell "C:\Program Files\Microsoft Office\Office12\VISIO.exe",
> vbNormalFocus
> End Sub
>
> Apologies if this is in the wrong sub-forum...I figured it was a Word
> problem first and foremost, and I'll take any Visio-specific questions to
> the
> appropriate forum.
>
> Regards.