Inserting Pictures

E

Erik Schmidt

I want to make a macro in VBA for inserting pictures of employees in their relevant shapes in an Organization Chart (Visio 2003). Can this be done?
I have tried to record a macro when inserting the picture in Visio 2003 by selecting the shape and activating the menuitem 'Shape, Actions, Insert Picture...', but nothing is recorded.
 
K

Kari Yli-Kuha

Erik Schmidt said:
I want to make a macro in VBA for inserting pictures of employees in their relevant shapes in an
Organization Chart (Visio 2003). Can this be done?
I have tried to record a macro when inserting the picture in Visio 2003 by selecting the shape
and activating the menuitem 'Shape, Actions, Insert Picture...', but nothing is recorded.

Try e.g.

ovShape.import "C:\pics\ErikSchmidt.jpg"

Note: "ovShape" needs to be a group for this to succeed because the picture
will become a a subshape of it.

/C
 
A

Alfredo

Hi, I triyed to make that you suggest (ovShape.import
"c:\ErikSchmidt.jpg") but, I couldn't because it generate a new shape
with a picture.

I couldn't insert properties to this and nothing, all the shape was a
picture only that!! (no name, no salary nothing!!)

I don't know how to solve this problem

I would thank you if you suggest something.

regards
Alfredo
 

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