Copy autoshape Fill to Title

  • Thread starter Thread starter Janko
  • Start date Start date
J

Janko

Hi!

I am trying to copy the names of a large set of images in a
presentation to the title of the slides. To put it simple:
1. check all slides if they have a picture insterted
2. if they do check the file name
3. apply that name to the title box

For example I have a shape with the .Fill.UserPicture "file.jpg" and I
would like to copy the "file.jpg" to the .Text of the title.

Unfortunately my VBA knowledge is not good enough to copy
..Fill.UserPicture to string. Any hint would be appreciated.

Regards,

Janko
 
Janko,
If you have a shape with an image set as a fill, you will not be able to
access that information because of the limitations in the PowerPoint object
model.

Regards
Shyam Pillai

http://www.mvps.org/skp
 
I am trying to copy the names of a large set of images in a
presentation to the title of the slides. To put it simple:
1. check all slides if they have a picture insterted
2. if they do check the file name
3. apply that name to the title box

For example I have a shape with the .Fill.UserPicture "file.jpg" and I
would like to copy the "file.jpg" to the .Text of the title.

Unfortunately my VBA knowledge is not good enough to copy
..Fill.UserPicture to string. Any hint would be appreciated.

I don't think this will be possible.

UserPicture is a method, not a property and unfortunately there's no related
property that returns the name of a picture, at least none that I know of.

In other words, it's something like inserting a picture from file; PowerPoint
stores the whole picture in the PPT file, so it doesn't need to store the name
of the source file the picture came from.
 
Back
Top