Exporting all the text from a visio 2003 file

O

Olivier

Hello,
I am writing a vba program to export all the text out of a Visio 2003 file.
Presently I export the 3 headers, the 3 footers, the text for each shape,
and the comments of the document. Is there any other place where there could
be text in a visio document?

thanks,


Olivier
 
M

Mark Nelson [MS]

Text can be in many different places inside a Visio document, but I assume
that you only care about text that appears on the drawing. In this case I
can think of a few things that might display text:

- Shape Text (as John says, check all subshapes in groups)
- Header / Footer
- Ink
- Text in embedded OLE objects

When getting text from shapes, you should use the Characters object
(Shape.Characters.Text). This ensures that any text fields are returned as
expanded strings instead of tokenized placeholders.
 

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