Solved

Renumber objects in a Powerpoint Document

Posted on 2013-12-10
2
626 Views
Last Modified: 2013-12-10
I have a PowerPoint document that consists of many pages(slides) of images and on each slide there are several numbered images - the numbers are contained within a circle shape added with the Insert-Shape option.

Occasionally I will insert and or remove slides and move images around.

Is there a way to automatically renumber the images?

I'm assuming that it must be possible to write a macro that starts at the beginning, searches for each circle shape in turn an replaces the text.

I've attached a sample, the real document is currently 50+ slides.

I'm using PowerPoint 2013 by the way.
sample.pptx
0
Comment
Question by:KCTS
2 Comments
 
LVL 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39708300
Hi,

pls try

Sub Macro()

Idx = 1
For Each sld In ActivePresentation.Slides
    For Each Shp In sld.Shapes
        If Shp.AutoShapeType = msoShapeOval Then
            Shp.TextFrame.TextRange.Text = CStr(Idx)
            Idx = Idx + 1
        End If
    Next
Next
End Sub

Open in new window

Regards
0
 
LVL 70

Author Closing Comment

by:KCTS
ID: 39709196
Great - does exactly what I need - thank you
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question