You are out of luck there. This is something which was surprisingly left out
from the object model. Though you cannot determine which file was used, you
can extract the original image from with PowerPoint (2000+) by using the
hidden Export method for a shape.
Interestingly, when you use the Export method on the shape with a user
background picture/texture fill (Same as right-click on shape| Saves as
picture...) to export it as *EMF*, you get the original image that was used
to provide the background fill and not an export of the complete shape. Any
other format and you will get the PowerPoint shape. A bug which can be used
to your benefit.
Call ActiveWindow.Selection.ShapeRange(1).Export("E:\test\test.emf",
ppShapeFormatEMF)
--
Regards,
Shyam Pillai
Animation Carbon:
http://skp.mvps.org/ac/
"MrBo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm aware of that, however I'm trying to do this programmatically in VBA!
>
> "Geetesh Bajaj" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> If you just want the name, double-click the AutoShape to summon the
>> Format
>> AutoShape dialog box.
>>
>> Then choose the Colors and Lines tab and click the downward pointing
>> arrow
>> for the Fill Color and choose Fill Effects in the flyout menu.
>>
>> Then choose the Picture tab in the Fill Effects dialog box. Right below
> the
>> picture, you'll find the name of the picture.
>>
>> --
>> Geetesh Bajaj, Microsoft PowerPoint MVP
>> http://www.indezine.com
>> http://www.ppted.com
>>
>>
>>
>> "MrBo" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > All
>> > I'm trying to programmatically determine which image file is currently
>> being
>> > used to fill an autoshape.
>> > I can set this file for an autoshape but so far have been unable to
>> > read
>> > this filename in code.
>> > Any help gratefully appreciated.
>> >
>> > Menu:-
>> > Select autoshape, right click-Format Autoshape-Colors and Lines
>> > tab-Fill-Color:-Fill Effects-Picture Tab-Select Picture
>> >
>> >
>> >
>>
>>
>>
>
>