Open New Visio Drawing using VBA in Word?

R

Ramsay

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.
 

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