G
Guest
I need to create a macro to delete slides on a daily basis to put "new"
slides in. Any help appreciated.
slides in. Any help appreciated.
David, Actually I only want to delete the "content" in the slides. I
am sorry I didnt make my self clear. I am fairly new at this. How do I
do this in a command button & where can I put it for the user to just
click it everyday to delete out the content of the 78 slides? Thanks
so much for your time.
David, Thanks again for posting. No, it isnt a silly question! Here goes..ALL
I need is the pictures to be deleted, not the text. This is for an animal
shelter, and each day we post new pictures of new animals we get daily. The
text will be the same as it is the name and number of the "pen" the animal
resides in.
So all I want to do is delete the pictures from 2 to 78. Our first slide
will remain the same.
msoPicture) or if a shape is a placeholder (shp.Type = msoPlaceholder),
but I don't know how to identify if a shape is a placeholder that
contains a picture. Any suggestions?
David M. said:OK. I think I have solved their problem. Deleting all the pictures
(that aren't in placeholders) was easy:
Sub DeletePix()
Dim sld As Slide
Dim shp As Shape
For Each sld In ActivePresentation.Slides
If sld.SlideIndex <> 1 Then
For Each shp In sld.Shapes
If shp.Type = msoPicture Then
shp.Delete
End If
Next shp
End If
Next sld
End Sub
That may not always work; try it with, say, five pictures on a slide,
all added one after another.
Instead, try
For X = sld.shapes.count to 1 step -1
If sld.shapes(x).Type = etc etc etc