Powerpoint picture change???

M

Martin

Hello,
I want to change a picture in powerpoint2003 from VB.
Is something like this possible? I want to store the properties of the
first picture...so copy/paste doesnt work.I also played with images,
but there are no animation effects available:(
If it isnt possible, is there a method to save all the properties of
the first picture in a collection or something...and later set them on
the new picture???
A code sample would be very nice;-)

Thanks for every help
 
M

Martin

Hi have found a way to manage my problem:)
Its not the easiest but it works.
First I create a picture with transparenz!
This picture I add to the presentation.
To replace the picture i just have to change the backcollor of it like
this...

pp.ActiveWindow.Selection.SlideRange.Shapes(i).Fill.UserPicture
(pathofpicture)

after that i just have to rezize it a little and tadaaaa...
the new picture have all effects and animations of the old picture:)
little complicated but a solution...
 
M

Martin

Hi,
it seems I have found a way.
Its a little complicated but it works.
First I generate a Picture with nothing on it!(The picture is all
transparent)
Then I set programticly the backcolor of the picture and set it to an
graphik...like this
PP.ActiveWindow.Selection.SlideRange.Shapes(i).Fill.UserPicture (path)
After that i have all the effects and properties of the ols picture:)
Its better for me than the copy/paste-method.
 
M

Martin

Hi again,
here is a even better way:
Just make an Autoform and then replace the backcolor!
So you have not to create a transparent .gif...
 

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