launch excel and new worksheet with data from visio

R

revans00

I have some VBA code that parses the shapes in an existing Visio drawing
and extracts information about connections (Thanks Markus!), text and
some custom properties for those shapes.

I would now like that information in an excel spreadsheet. How do I
(from this VBA running as a Visio Macro) launch Excel, create a new
worksheet, and populate it with the data from my shapes?

I've tried:

Dim xlApp As Excel.Application
Set xlApp = CreateObject("excel.application")

Yet I get a compile time error: "User Defined type not defined"

Is there something I must include so that a Visio VBA macro knows about
Excel?

TIA!
Richard
 
R

revans00

Thanks for the reply Al!

Unfortunately, that option (tools => references) is "greyed out". Any
suggestions?

Thanks!
Richard.
 

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