B
ben
I 'd like to automate a task that goes through all my
slides in turn to delete the existing image on it and
replace it with an updated image from file. The macro
recorder produced the following code:
ActiveWindow.Selection.SlideRange.Shapes("Picture
119").Select
ActiveWindow.Selection.Cut
ActiveWindow.Selection.SlideRange.Shapes.AddPicture
(FileName:="C:\WebCharts\Brent.png",LinkToFile:=msoFalse).
Select
How can I amend this to replace "ActiveWindow" with the
name of the slide in question and how do I
replace "Picture 119" with a generic term so that it
always refers to whatever image happens to be in that
slide
Thank you
slides in turn to delete the existing image on it and
replace it with an updated image from file. The macro
recorder produced the following code:
ActiveWindow.Selection.SlideRange.Shapes("Picture
119").Select
ActiveWindow.Selection.Cut
ActiveWindow.Selection.SlideRange.Shapes.AddPicture
(FileName:="C:\WebCharts\Brent.png",LinkToFile:=msoFalse).
Select
How can I amend this to replace "ActiveWindow" with the
name of the slide in question and how do I
replace "Picture 119" with a generic term so that it
always refers to whatever image happens to be in that
slide
Thank you