Change Name property of Picture/Shape

D

digbydog

Hi,

Is there anyway to change the name property of a picture via the word menus?
I have gone into vba code and changed the name using

Dim oPicture As Word.Shape
...
oPicture.Name = "Personal Photo"
....

but can't find out how to do it anywhere else. Might seem a strange request
but I am listing all pictures in the document in a list box and have to map
up with database fields that contain images.

Anyway if anyone knows would be much appreciated.

thanks
Simon
 
S

Shauna Kelly

Hi Simon

There is no way in the user interface to name a shape.

You could write a macro that named the currently-selected shape, and attach
the macro to a toolbar button or menu item.

Also, don't forget that a picture that is formatted inline with the text is
an InLineShape not a Shape.

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
D

digbydog

Hi Shauna,

thanks very much for that - the macro looks like the way to go.

thanks again
Simon
 

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