LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Controlling Visio from within Excel

Steve,
I don't use Visio, but assuming it functions similarly to Office apps, then
try :

Set a reference to the Visio type library, under ToolsReferences find and
select the Visio entry.
Dim WithEvents VisioApp As Visio.Application 'Change the correct syntax

Check the Help for WithEvents; it means you will receive an event in Excel
when something happens in Visio, in your case the document (?) closing. This
can trigger your code to copy/paste etc.
Note that using "WithEvents" you must use early binding and the varraible
must be declared in a class module (although a worksheet module is actually
a class module).

Viso and VBA;
http://visio.mvps.org/VBA.htm
There is a list of Visio newsgroups in the above link, that would be better
to help with the Visio end than this NG.

This may be useful, although its meaning of "automation" is not the same as
Office/OLE;
http://www.boxesandarrows.com/view/a...ams_with_visio

Make a start and see what you can achieve. post back if you have
difficulties.

NickHK

"Steve" wrote in message
...
I apologise if this seems a little basic, but I'm not sure where to start.

When running a XL file, on the click of a button I want to launch a

template
in visio. When the visio file is closed, I want to automatically copy the
visio workspace and paste it into the worksheet.

Any help to get me started would be appreciated.



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft Visio templates - Stencil for Visio to create IT diagrams &network design Betty Carson Excel Worksheet Functions 2 December 10th 09 06:41 AM
Excel List to visio José Miguel Torres Excel Discussion (Misc queries) 0 December 19th 07 10:34 PM
hyperlink from excel to visio Robert Vega Setting up and Configuration of Excel 3 June 20th 05 04:24 PM
Can an Excel file be converted into Visio? jim314 Excel Discussion (Misc queries) 0 April 18th 05 06:34 PM
Excel to Visio to Word P. Dua-Brown Excel Programming 6 January 11th 04 02:04 AM


All times are GMT +1. The time now is 01:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"