A
avfc4me
I have the same background pic in several presentations, and I want to
replace that file depending on which button is pressed. The background
picture is called "blank_pic.jpg".
I can do a replace of the item using this:
ActiveWindow.ViewType = ppViewSlideMaster
ActivePresentation.SlideMaster.Shapes("Picture 13").Select
ActiveWindow.Selection.ShapeRange.Delete
ActivePresentation.SlideMaster.Shapes.AddPicture(FileName:="C:\Project\8_paper.jpg",
LinkToFile:=msoFalse, SaveWithDocument:=msoTrue, Left:=36, Top:=27,
Width:=648, Height:=486).Select
With ActiveWindow.Selection.ShapeRange
.ScaleWidth 1.06, msoFalse, msoScaleFromBottomRight
.ScaleHeight 1.06, msoFalse, msoScaleFromBottomRight
End With
With ActiveWindow.Selection.ShapeRange
.ScaleWidth 1.05, msoFalse, msoScaleFromTopLeft
.ScaleHeight 1.05, msoFalse, msoScaleFromTopLeft
End With
ActiveWindow.Selection.ShapeRange.ZOrder msoSendToBack
ActiveWindow.ViewType = ppViewSlide
But I'd rather just delete the background image "blank_pic.jpg" rather than
go through all of my presentations and figure out which picture number the
blank is in every presentation. Is it possible?
replace that file depending on which button is pressed. The background
picture is called "blank_pic.jpg".
I can do a replace of the item using this:
ActiveWindow.ViewType = ppViewSlideMaster
ActivePresentation.SlideMaster.Shapes("Picture 13").Select
ActiveWindow.Selection.ShapeRange.Delete
ActivePresentation.SlideMaster.Shapes.AddPicture(FileName:="C:\Project\8_paper.jpg",
LinkToFile:=msoFalse, SaveWithDocument:=msoTrue, Left:=36, Top:=27,
Width:=648, Height:=486).Select
With ActiveWindow.Selection.ShapeRange
.ScaleWidth 1.06, msoFalse, msoScaleFromBottomRight
.ScaleHeight 1.06, msoFalse, msoScaleFromBottomRight
End With
With ActiveWindow.Selection.ShapeRange
.ScaleWidth 1.05, msoFalse, msoScaleFromTopLeft
.ScaleHeight 1.05, msoFalse, msoScaleFromTopLeft
End With
ActiveWindow.Selection.ShapeRange.ZOrder msoSendToBack
ActiveWindow.ViewType = ppViewSlide
But I'd rather just delete the background image "blank_pic.jpg" rather than
go through all of my presentations and figure out which picture number the
blank is in every presentation. Is it possible?