View Single Post
 
Old 05-04-2012, 05:42 AM
JohnWilson JohnWilson is offline Windows 7 64bit Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,914
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

The problem would be PowerPoint knowing exactly how you number - There are a lot of possible variables. If the numbering is straightforward you MIGHT be able to use code like this:

Code:
Sub renum()
Dim num As Long
Dim osld As Slide
Dim oshp As Shape
num = num + 1
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.HasTextFrame Then
If oshp.TextFrame.HasText Then
If oshp.TextFrame.TextRange.ParagraphFormat.Bullet.Type = ppBulletNumbered Then
With oshp.TextFrame.TextRange
.ParagraphFormat.Bullet.StartValue = num
num = num + .Paragraphs.Count - 1
End With
End If
End If
End If
Next oshp
Next osld
End Sub
How to use code
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote