Solved

Renumber objects in a Powerpoint Document

Posted on 2013-12-10
2
617 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 49

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
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 simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now