Solved

Renumber objects in a Powerpoint Document

Posted on 2013-12-10
2
613 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 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
Comment Utility
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
Comment Utility
Great - does exactly what I need - thank you
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

772 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