epimeliad
06-23-2016, 04:49 AM
Hi all,
Desperately need help with trying to replace all text except in full caps and title to be proper sentence case.
I tried using ppCaseSentence but it also changes some of my full cap acronyms.
So far i tried following Steve Rindsberg code but I failed to make it work
Sub DataScrubAllSlidesAndTables()
Dim sld As Slide
Dim grpItem As Shape
Dim shp As Shape
Dim i As Long
Dim j As Long
For Each sld In ActivePresentation.Slides
For Each shp In sld.Shapes
If shp.HasTextFrame Then
If shp.TextFrame.HasText Then
shp.TextFrame.TextRange.ChangeCase ppCaseSentence
End If
End If
If shp.HasTable Then
For i = 1 To shp.Table.Rows.Count
For j = 1 To shp.Table.Columns.Count
shp.Table.Rows.Item(i).Cells(j).Shape.TextFrame.TextRange.ChangeCase ppCaseSentence
Next j
Next i
End If
Next shp
Next
End Sub
Desperately need help with trying to replace all text except in full caps and title to be proper sentence case.
I tried using ppCaseSentence but it also changes some of my full cap acronyms.
So far i tried following Steve Rindsberg code but I failed to make it work
Sub DataScrubAllSlidesAndTables()
Dim sld As Slide
Dim grpItem As Shape
Dim shp As Shape
Dim i As Long
Dim j As Long
For Each sld In ActivePresentation.Slides
For Each shp In sld.Shapes
If shp.HasTextFrame Then
If shp.TextFrame.HasText Then
shp.TextFrame.TextRange.ChangeCase ppCaseSentence
End If
End If
If shp.HasTable Then
For i = 1 To shp.Table.Rows.Count
For j = 1 To shp.Table.Columns.Count
shp.Table.Rows.Item(i).Cells(j).Shape.TextFrame.TextRange.ChangeCase ppCaseSentence
Next j
Next i
End If
Next shp
Next
End Sub