PDA

View Full Version : PPT 2016 Publish to Word and Show Codes?



leaning
01-01-2016, 06:56 PM
Hello!

Working with PowerPoint 2016:

1) How do you publish or convert slides to Word (text boxes, not the outline)?
2) Does PPT have a Reveal Codes function like Word where you can see the non-printing characters? How can you find all non-breaking spaces, for instance and replace those with regular spaces?

I appreciate your help!

Regards,
Leaning

John Wilson
01-02-2016, 05:59 AM
There's no in built way to do 1 or 2

You could use code to replace non breaking with normal spaces though (NOTE this will not work with text in smart art or tables without extra code)



Sub zapNBS()
Dim osld As Slide
Dim oshp As Shape
Dim oTxtRng As TextRange
Dim oTmpRng As TextRange
On Error Resume Next
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.HasTextFrame Then
If oshp.TextFrame.HasText Then
Set oTxtRng = oshp.TextFrame.TextRange
'Non Break Space is 160, normal space 32
Set oTmpRng = oTxtRng.Replace(Chr(160), Chr(32))
Do While Not oTmpRng Is Nothing
Set oTmpRng = oTxtRng.Replace(Chr(160), Chr(32))
Loop
End If
End If
Next oshp
Next osld
End Sub